[389-users] Modify users attributes

Fosiul Alam fosiul at gmail.com
Tue Aug 14 11:40:00 UTC 2012


Hi
the theme of this script is , i need to modify uid , password, loginshell

example

ldapsearch -xZZ -D  "cn=Directory Manager" -w 'testtest' -b
"dc=fosiul,dc=lan" "(cn=Fosiul Alam)" loginshell uid userPassword
# extended LDIF
#
# LDAPv3
# base <dc=fosiul,dc=lan> with scope subtree
# filter: (cn=Fosiul Alam)
# requesting: loginshell uid userPassword
#

# falam, users, UK, fosiul.lan
dn: uid=falam,ou=users,l=UK,dc=fosiul,dc=lan
loginshell: /bin/bash
uid: falam
userPassword:: e1NTSEF9MkpYSGI2bSs3OFk5SlcySG1kOVcxdjFVUFVHMVA3eXI0dFQvZ2c9PQ=
 =

# search result
search: 3
result: 0 Success


So i need to modify it with
loginshell: /bin/nologin
uid: delete_falam
userPassword:: asfasfasfasfasfasfasfdPQ=


my first question is :
what would be the ldif file format for these changes ??

Thanks for your help .



More information about the 389-users mailing list