]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-passwd/search.c
Add missing progname argument to fprintf
[openldap] / servers / slapd / back-passwd / search.c
index cb1b9f4b29daaa0f23a935ba38bb81c9e1232fdd..c9668907577d2ec7907405e75bd971b4721ff6e0 100644 (file)
@@ -107,7 +107,7 @@ passwd_back_search(
        
                        if ( test_filter( be, conn, op, e, filter ) == 0 ) {
                                send_search_entry( be, conn, op,
-                                       e, attrs, attrsonly, 0, NULL );
+                                       e, attrs, attrsonly, NULL );
                                sent++;
                        }
                }
@@ -145,7 +145,7 @@ passwd_back_search(
                                        }
 
                                        send_search_entry( be, conn, op,
-                                               e, attrs, attrsonly, 0, NULL );
+                                               e, attrs, attrsonly, NULL );
                                        sent++;
                                }
 
@@ -196,7 +196,7 @@ passwd_back_search(
 
                if ( test_filter( be, conn, op, e, filter ) == 0 ) {
                        send_search_entry( be, conn, op,
-                               e, attrs, attrsonly, 0, NULL );
+                               e, attrs, attrsonly, NULL );
                        sent++;
                }
 
@@ -238,7 +238,8 @@ pw2entry( Backend *be, struct passwd *pw, char *rdn )
        /* rdn attribute type should be a configuratable item */
        sprintf( buf, "uid=%s,%s", pw->pw_name, be->be_suffix[0] );
        e->e_dn = ch_strdup( buf );
-       e->e_ndn = dn_normalize_case( ch_strdup( buf ) );
+       e->e_ndn = ch_strdup( buf );
+       (void) dn_normalize_case( e->e_ndn );
 
        val.bv_val = pw->pw_name;
        val.bv_len = strlen( pw->pw_name );