On 01/05/17 19:52, Tus wrote:
Hello 389-users:
I'm looking for ideas to update ~100 uid's loginShell to /bin/nologin. For
the most part I use ADS to maintain the LDAP server but familiar with
modifying ONE entry using ldif file fed into ldapmodify.. What are some
good ways to bulk update?
Cheers.
ldif file fed to ldapmodify
dn: uid=user1,ou=People,dc=example,dc=com
changetype: modify
replace: loginshell
loginshell: /bin/nologin
-
dn: uid=user2,ou=People,dc=example,dc=com
changetype: modify
replace: loginshell
loginshell: /bin/nologin
-
I usually do first an ldapsearch to get all the DNs I need and then in
vi I add the rest of the details.
G
_______________________________________________
389-users mailing list -- 389-users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to 389-users-leave@xxxxxxxxxxxxxxxxxxxxxxx