]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/suffixalias.c
Finished the integerMatch matching rule and the integer syntax.
[openldap] / servers / slapd / suffixalias.c
index 848364897b679808a6ff9db80f4ebd94d7cf57a2..703d90ef8275330cbe983de12e90f2959cb160e5 100644 (file)
@@ -32,7 +32,7 @@ char *suffix_alias(
        Backend *be,
        char *dn )
 {
-       int     i, dnLength;
+       int     i, dnLength;
 
        if(dn == NULL) return NULL;
        if(be == NULL) return dn;
@@ -63,9 +63,16 @@ char *suffix_alias(
                        dn = ch_malloc( diff + strlen(be->be_suffixAlias[i+1]) + 1 );
                        strncpy( dn, oldDN, diff );
                        strcpy( &dn[diff], be->be_suffixAlias[i+1] );
+#ifdef NEW_LOGGING
+                       LDAP_LOG(( "operation", LDAP_LEVEL_INFO,
+                                  "suffix_alias: converted \"%s\" to \"%s\"\n",
+                                  oldDN, dn ));
+#else
                        Debug( LDAP_DEBUG_ARGS,
                                "suffix_alias: converted \"%s\" to \"%s\"\n",
                                oldDN, dn, 0);
+#endif
+
                        free (oldDN);
                        break;
                }