[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Tiny bugfix patch for ldappasswd (ITS#2696)
Full_Name: Nicolas Schodet
Version: 2.1.22
OS: Debian GNU/Linux 3.0
URL:
Submission from: (NULL) (193.50.162.131)
ldappasswd -T and -t options don't work, they try to open the file ldappasswd
instead of the argument passed.
Here is the fix :
--- ldappasswd.c.old Mon Sep 1 12:30:47 2003
+++ ldappasswd.c Mon Sep 1 12:31:50 2003
@@ -168,7 +168,7 @@
}
if( oldpwfile ) {
- rc = lutil_get_filed_password( prog, &oldpw );
+ rc = lutil_get_filed_password( oldpwfile, &oldpw );
if( rc ) return EXIT_FAILURE;
}
@@ -189,7 +189,7 @@
}
if( newpwfile ) {
- rc = lutil_get_filed_password( prog, &newpw );
+ rc = lutil_get_filed_password( newpwfile, &newpw );
if( rc ) return EXIT_FAILURE;
}
I also find the use of the -y option confusing, without -W, the -y option is
ignored.