Topic: Mass LDAP schema edit
==== Required information ====
- iRedMail version: 0.9.0
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Linux/BSD distribution name and version: CentOS
- Related log if you're reporting an issue:
====
Hello!
First let me say thank you for everything! Very very good peace of software! Thank you for your work!
We started to implement iRedMail LDAP everywhere, because email is our primary account. Now we want to do a step forward and edit/edit the LDAP schema so it will fit more integrations.
I already edited your script for adding attributes and object classes to LDAP upon creation. It works very well.
But now we want to update the object classes and add attributes to all the users in LDAP.
So I kindly ask you if you can share with us an example script for mass updating(edit, add) LDAP schema. You probably have some examples when you wrote the scripts for updating LDAP schema in the past.
I added schema into "schema" directory and included it into slapd config.
So for now I only add the following objects to the new users with a bash script (this is part of it, only ldapmodify:
ldapmodify -x -D "${BINDDN}" -w "${BINDPW}" <<EOF
dn: mail=${MAIL},${OU_USER_DN},${DOMAIN_DN},${BASE_DN}
changetype: modify
add: objectClass
objectClass: ownCloud
-
add: ownCloudQuota
ownCloudQuota: $QUOTA
So we need to add:
objectClass: ownCloud
ownCloudQuota: '10 G'
And one additional question. What is the timeline for iRedAdmin API (add, edit, etc)?
Oh btw, we wrote a script that creates the DKIM key and adds it into config. But the coding isn't the best, it's hacked up together, but it works. I will clean it a little bit and post it, maybe someone will help to improve it.
Thank you very much!
slovenka
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.