Nethserver v7 works like a charm, but when users connect to their roundcube webmail, they see the public ldap adressbook that i wish to completely hide from every users.
How should i proceed ?
So this is what i’ve done, following stephdl and Stefano_Zamboni. Many
thanks to them
By the way stephdl, i know you need help but at this time i can’t.
Really sorry about that. Bon courage
So, this is how to prevent the public ldap adressbook from appearing in
RoundCube.
First, open :
/etc/e-smith/templates/etc/roundcubemail/config.inc.php/
Find 50ADDRESSBOOK_SETTINGS, which is what i was looking for.
I could have removed it following stephdl, but i have prefered to create
my own template.
cd /etc/e-smith/templates-custom
Create a relative path, NOT an absolute one as i initially did
mkdir -p /etc/roundcubemail/config.inc.php/
Go to the directory you created :
cd etc/roundcubemail/config.inc.php/
Copy the original file in the current directory :
cp
/etc/e-smith/templates/etc/roundcubemail/config.inc.php/50ADDRESSBOOK_SETTINGS
.
Edit
/etc/e-smith/templates-custom/etc/roundcubemail/config.inc.php/50ADDRESSBOOK_SETTINGS
Remove the first part of the file (LDAP and AD are useless for me).
There’s another trick : you must remove ‘public’ where the file deals
with :
"// An ordered array of the ids of the addressbooks that should be searched
// when populating address autocomplete fields server-side."
Instead of :
$config[‘autocomplete_addressbooks’] = array(‘sql’,‘public’);
Use :
$config[‘autocomplete_addressbooks’] = array(‘sql’);