Zentyal Forum, Linux Small Business Server
Zentyal Server => Installation and Upgrades => Topic started by: xorred on July 01, 2009, 10:30:09 pm
-
use at your own risk.
apt-get install phpldapadmin
Since we're setting up for multiple installs, we'll give each one a different config file
cp -R /usr/share/phpldapadmin /var/www/myphpldapadmin
cp /etc/phpldapadmin/config.php /etc/phpldapadmin/first.config.php
rm /var/www/myphpldapadmin/config/config.php
ln -s /etc/phpldapadmin/first.config.php /var/www/myphpldapadmin/config/config.php
chmod +r /etc/phpldapadmin/first.config.php
Now customize the config file. You'll probably need to change the following lines:
$config->custom->session['blowfish'] = 'randomstringofyourseditthat'; //Add a random string for encryption purposes
$ldapservers->SetValue($i,'server','name','ebox'); // The name to display
$ldapservers->SetValue($i,'server','host','127.0.0.1'); // Address of the LDAP server
$ldapservers->SetValue($i,'server','port','389'); // Port number
$ldapservers->SetValue($i,'server','base',array('dc=example,dc=com')); // Base dn
And open http://ebox-ip-address/myphpldapadmin/
Taken from https://help.ubuntu.com/community/InstallingphpLDAPadmin
Thank you, Blinkiz ;)
That should be it.
-
So this looks like a good way to browse and view stuff. But I can't see how to get past anonymous access.
Is there an admin account or password that can be used? The one set up in ebox does not appear to work here, at least not admin.
Am I missing something obvious?
-
Hi, use the password stored in /etc/ldap.secret
Kind regards, Björn
cat /etc/ldap.secret
-
Hi, use the password stored in /etc/ldap.secret
Kind regards, Björn
cat /etc/ldap.secret
Thanks. In the end needed to change that password, too long and unwieldy to use for web authentication. Changed in /etc/ldap/slapd.conf (search for "rootpw") and updated /etc/ldap.secret to match. Doesn't seem to have broken anything ebox wise.
Using slapcat managed to figure out all ebox ldap entries seem to be under dc=ebox so used these in the phpldapadmin config:
$ldapservers->SetValue($i,'server','base',array('dc=ebox'));
$ldapservers->SetValue($i,'login','dn','cn=admin,dc=ebox');
In with edit privs! Now I am really living dangerously!
- Pro
-
Really sweet. I was looking for something like this. Thanks for this procedure.
I have recently tried it with an ebox 1.4 installation on top of Ubuntu Hardy.
I can login anonymously and browse the ebox directory.
I can also login successfully leaving the login DN blank and entering the password stored in ldap.secret but although in this case there is no authentication I am not able to browse the directory and on the left panel I only get the menu option to login again. ¿Any clues?
I am not able to login using cn=admin,dn=example,dn=com or using cn=ebox,dn=example,dn=com because I get an authentication failure in both cases.
Thanks, keep up the good work.
-
I am not able to login using cn=admin,dn=example,dn=com or using cn=ebox,dn=example,dn=com because I get an authentication failure in both cases.
Hi, I am new in this, but in my case I use and works with
cn=ebox, dn=[my machine name], dn=mshome,dn=net
with the passwd in ldap.secret
edit in config.php
$ldapservers->SetValue($i,'login','dn',cn=ebox, dn=[my machine name], dn=mshome,dn=net);
Maybe helps