LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 22-Oct-2009, 06:21 AM
Junior Member
 
Join Date: Nov 2008
Posts: 2
ptrk 0 reputation points
Default Change password whit ldapmodify

I am trying to change the password for a user whit ldapmodify. I´m running OES 2 och SLES 10.

What i´m really want to do is change severel password in a batch.

I´m trying whit this command

ldapmodify -x -ZZ -h 10.x.x.9 -p 389 -D "cn=admin,ou=xxx,o=xx" -W -vv -c -f ldapmod

The file ldapmod looks like this:

# Nokia, div, fu
dn: cn=Nokia,ou=div,o=fu
changetype: modify
delete: userPassword
add: userpassword
userPassword: password

I have tryed whit this to:

# Nokia, div, fu
dn: cn=Nokia,ou=div,o=fu
changetype: modify
replace: userPassword
userPassword: password

The output looks like this:

ldap_initialize( ldap://10.167.16.9:389 )
Enter LDAP Password:
delete userPassword:
password
delete add:
userpassword
modifying entry "cn=Nokia,ou=div,o=fu"
modify complete

It looks like the password changes but it doesnt work when i´m trying to log in.
Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 03:14 AM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.0 RC2