Anonymous_User Absent Member.
Absent Member.
652 views

PERL LDAP userPassword


I am attempting to clear (set to blank) user passwords using net::ldap
with perl. My issue is I can change the user's password work but I
can't just blank it out of set it to "". I get error id: 53 :: DSA is
unwilling to perform. Like I said I can set it to anything else, but I
just can't blank it out. Here is some code:

my $user = "cn=" . $entry->get_value( "cn" ) . "," . $baseDN;
print "Changing User: ", $user ,"\n";
my $r = $ldap->modify( $user, replace => { 'userPassword' => '' } );

also tried
my $r = $ldap->modify( $user, replace => { 'userPassword' => [] } );

Any help would be appreciated! We are able to change the passwords
using other LDAP tools like LDAPAdmin, so we believe it isn't policy
related.


--
csyperski
------------------------------------------------------------------------
csyperski's Profile: http://forums.novell.com/member.php?userid=23648
View this thread: http://forums.novell.com/showthread.php?t=382834

Labels (1)
0 Likes
1 Reply
Anonymous_User Absent Member.
Absent Member.

Re: PERL LDAP userPassword

csyperski,

>Any help would be appreciated! We are able to change the passwords
>using other LDAP tools like LDAPAdmin, so we believe it isn't policy
>related.


I am not for sure about this, kinda just guessing, but can you set it to
"null" instead?

--
Jared Jennings
Novell Support Forums Sysop
Senior Systems Architect, Data Technique, Inc.
http://www.datatechnique.com

My Blog and Wiki with Tips, Tricks, and Tutorials
http://jaredjennings.org
Twitter@ http://twitter.com/jaredljennings
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.