]> git.sur5r.net Git - openldap/blobdiff - clients/tools/ldapwhoami.c
allow continuous mode
[openldap] / clients / tools / ldapwhoami.c
index a436c738e9d77286e56d983a625512d4c5f9040d..17d48b28e3981ac4abd6dd5867afc192778a3959 100644 (file)
@@ -116,7 +116,7 @@ main( int argc, char *argv[] )
        char            *matcheddn = NULL, *text = NULL, **refs = NULL;
        char            *retoid = NULL;
        struct berval   *retdata = NULL;
-       int             id, code;
+       int             id, code = 0;
        LDAPMessage     *res;
 
        tool_init( TOOL_WHOAMI );
@@ -154,9 +154,7 @@ main( int argc, char *argv[] )
                goto skip;
        }
 
-       if ( assertion || authzid || manageDSAit || noop ) {
-               tool_server_controls( ld, NULL, 0 );
-       }
+       tool_server_controls( ld, NULL, 0 );
 
        rc = ldap_whoami( ld, NULL, NULL, &id );