1

Topic: LDAP: add attributes to users

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.6.0 OPENLDAP edition
- Deployed with iRedMail Easy or the downloadable installer? No
- Linux/BSD distribution name and version: Debian 11
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

I would like to know if it is possible or if there is any tool to be able to massively set the "accountSetting" and "preferredLanguage" attributes to all the users that I have! I looked for a way to do it in phpLDPadmin and I couldn't, it only lets me do it one by one, and by command line directly in ldap I can't do it.

Could you help me with this. Thanks in advance.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: LDAP: add attributes to users

How about write a shell/python/perl/php/... script to do this job?

3

Re: LDAP: add attributes to users

ZhangHuangbin wrote:

How about write a shell/python/perl/php/... script to do this job?

Hello.

Thanks for responding @ZhangHuangbin.

Actually I don't have the knowledge to do what you mention, I would like to do it but I don't know how or where to start. Sorry!

Best regards.

4

Re: LDAP: add attributes to users

Know some shell scripting?
You can use command like "ldapmodify" to modify the ldap attributes.