Computer and IT knowledge - things to know
#modify
ldapmodify -x -D cn=root -w xxxx
dn: uid=user1,dc=org,dc=com
changetype: modify
replace: objectclass
objectclass: top
objectclass: account
objectclass: eAccount
objectclass: posixAccount
objectclass: shadowAccount
objectclass: ePasswordPolicy
#modify shadow max
ldapsearch -b dc=org,dc=com -s one uid=* shadowmax >shadowmax.ldif
shadowmax.ldif
changetype: modify
replace: shadowmax
uid=user1,dc=org,dc=com
shadowmax=90
uid=user2,dc=org,dc=com
shadowmax=90
ldapmodify -D cn=root -w xyz -f shadowmax.ldif
computer2know :: thank you for your visit :: have a nice day :: © 2024