I have scalix/ldap integration working great. My problem now, is that I need to modify my current LDAP directory to include the scalix schema items. I know how to modify each user individually by doing this:
Code: Select all
ldapmodify -x -D "uid=Manager,ou=Users,dc=foo,dc=com" -W -v -f /tmp/modify.ldif
And this is what /tmp/modify.ldif looks like:
Code: Select all
dn: uid=username,ou=Users,dc=foo,dc=com
changetype: modify
add: objectClass
objectClass: exScalixClass
-
add: exScalixObject
exScalixObject: TRUE
-
add: exScalixMailnode
exScalixMailnode: mailnode,domain
-
add: exScalixMsglang
exScalixMsglang: ENGLISH
-
add: exScalixAdmin
exScalixAdmin: TRUE
-
add: exScalixMboxadmin
exScalixMboxadmin: FALSE
-
That will modify that one user and I can use omldapsync and it works great. But I have about 200 users in my LDAP directory that I need to modify. How can I do this without having to do it one at a time? I'm not experienced enough with scripting or I'd just do that, and I've searched google but can't find anything close enough to my situation to make work.
Additionally how do I setup my OpenLdap server to require these attributes when I create a new user? So I don't have this extra step every time I add someone to my directory. Thanks in advance!