]> git.sur5r.net Git - openldap/blobdiff - tests/progs/slapd-modify.c
remove password from command line
[openldap] / tests / progs / slapd-modify.c
index 04cfef116c68845493721b846cf03cc044b35cf7..cb416d861180984e3df3edaac42d4dcb98a21454 100644 (file)
@@ -116,6 +116,7 @@ main( int argc, char **argv )
                case 'w':               /* the server managers password */
                        passwd.bv_val = strdup( optarg );
                        passwd.bv_len = strlen( optarg );
+                       memset( optarg, '*', passwd.bv_len );
                        break;
 
                case 'e':               /* entry to modify */