Any way to add custom entries to the public addressbook?

NethServer Version: 7.4
Module: LDAP/Roundcube

hi,
I’m interested in adding further entries to the public LDAP addressbook displayed in roundcube. As it is it only list existing LDAP/nethserver users, but I’d like to add further entries that are not based on existing users, fx name, email. Is that possible and what would be the most straightforward way to do this.

best regards
Mirco

Hi @curunir,

by default the mail addresses in the roundcube LDAP addressbook are bound to NethServer users AFAIK. One would have to reconfigure openldap (new addressbook ou) and roundcube (ldap filter settings) for allowing that. I don’t know if it’s possible to write to LDAP via roundcube, so you may use phpldapadmin in kamikaze mode to add mail address entries.
I actually have no experience doing this but when I find some time, I’ll try it.

Found some links:

https://www.brennan.id.au/20-Shared_Address_Book_LDAP.html

Writing to LDAP:
https://community.nethserver.org/t/profile-photo-in-nextcloud/7783/16

1 Like

I tried it now and it’s really easy with openldap:

Install phpldapadmin and enable kamikaze mode:

https://wiki.nethserver.org/doku.php?id=phpldapadmin

Login to phpldapadmin and create address book entry and you are ready:

https://support.eapps.com/index.php?/Knowledgebase/Article/View/437/55/user-guide---openldap-and-phpldapadmin (scroll down to “Adding address book entries”)

I couldn’t manage it with AD because I didn’t know objecttype and ntsecurityidentifier which are mandatory fields in AD. Maybe it could be achieved by comparing and trying but that’s too much for me now…

1 Like