Hello Folks,
I just installed OpenLDAP ('slapd-2.4.11') and 'ldap-utils' on my Ubuntu 8.10 using Synaptic Manager.
I have following queries related to configuring LDAP on Ubuntu. First & Foremost I am completely new to LDAP so please don't mind if my questions are really funny
1. After installation the file '/etc/ldap/ldap.conf' doesn't seem to contain the parameters like 'rootpw' & 'rootdn'. Am I seeing the wrong file or is there any other ldap configuration file on Ubuntu?
2. What is my default root node address and how to change it?
3. My machine doesn't have any FQDN. Its name is - 'station3' and I don't intend to give it a FQDN. Now my question can I have my root node address set to 'dc=station3,dc=home'? If yes, then I guess it has to be through 'ldapmodify' but can someone please share the exact syntax?
Thanks in Advance....
Cheers, Parag
One more question:
4. Is there an LDAP browser available on Ubuntu?
Cheers, Parag
On Sat, Sep 19, 2009 at 9:08 PM, Parag Kalra paragkalra@gmail.com wrote:
Hello Folks,
I just installed OpenLDAP ('slapd-2.4.11') and 'ldap-utils' on my Ubuntu 8.10 using Synaptic Manager.
I have following queries related to configuring LDAP on Ubuntu. First & Foremost I am completely new to LDAP so please don't mind if my questions are really funny
- After installation the file '/etc/ldap/ldap.conf' doesn't seem to
contain the parameters like 'rootpw' & 'rootdn'. Am I seeing the wrong file or is there any other ldap configuration file on Ubuntu?
What is my default root node address and how to change it?
My machine doesn't have any FQDN. Its name is - 'station3' and I don't
intend to give it a FQDN. Now my question can I have my root node address set to 'dc=station3,dc=home'? If yes, then I guess it has to be through 'ldapmodify' but can someone please share the exact syntax?
Thanks in Advance....
Cheers, Parag
Parag Kalra wrote:
One more question:
- Is there an LDAP browser available on Ubuntu?
Cheers, Parag
Apache's DS - http://directory.apache.org/studio/ PHP LDAP Admin - http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page
Zdenek
Zdenek Styblik wrote:
Parag Kalra wrote:
One more question:
- Is there an LDAP browser available on Ubuntu?
Cheers, Parag
Apache's DS - http://directory.apache.org/studio/ PHP LDAP Admin -
My vote for Apache Directory Studio, it is java, you can even use it on windows :S.
http://phpldapadmin.sourceforge.net/wiki/index.php/Main_Page
Zdenek
Parag Kalra paragkalra@gmail.com writes:
Hello Folks,
I just installed OpenLDAP ('slapd-2.4.11') and 'ldap-utils' on my Ubuntu 8.10 using Synaptic Manager.
I have following queries related to configuring LDAP on Ubuntu. First & Foremost I am completely new to LDAP so please don't mind if my questions are really funny [icon_s]
- After installation the file '/etc/ldap/ldap.conf' doesn't seem to contain
the parameters like 'rootpw' & 'rootdn'. Am I seeing the wrong file or is there any other ldap configuration file on Ubuntu?
The file /etc/openldap/ldap.conf contains information for ldap clients and not the server configuration. Ubuntu creats the configuration backend cn=config, there should be a directory /etc/openldap/slapd./ which contains all relavant data. This data can be modified by means of the protocol, that is via openldap tools like ldapmodify or a GUI tool to your liking.
- What is my default root node address and how to change it?
you have answered all questions when setting up the server, so you should know.
- My machine doesn't have any FQDN. Its name is - 'station3' and I don't
intend to give it a FQDN. Now my question can I have my root node address set to 'dc=station3,dc=home'? If yes, then I guess it has to be through 'ldapmodify' but can someone please share the exact syntax?
The naming of the directory information base is not dependend of the domain name service. The easiest way to modify the database is to delete cn=config and all database files, probably in /var/lib/ldap, and start from scratch.
-Dieter
Hello All,
First let me thank - Zdenek, I was able to connect to my ldap server using 'phpldapadmin'.
As I am new to LDAP I would again like appologize if my questions are funny...anyways coming back to the problem...
During installation it only asked for the password and not for base root settings. However on doing 'Googly' I found that on Ubuntu the settings are 'cn=admin,cn=config'
Then using the password and above settings I was able to login through 'phpldapadmin'. On logging in I can see my root base dn set to 'dc=example,dc=com'. Kindly correct me if I am wrong - if those are my base root settings I am okay with it. Also PFA screenshot to have a look at my settings.
Now my next aim is to add a organisational unit to it. So my ldiff file looks like following: dn: ou=family,dc=example,dc=com ou: family objectClass: organizationalUnit
# ldapadd -D "cn=admin,cn=config" -W -x -f add_ou.ldiff Enter LDAP Password: adding new entry "ou=family,dc=example,dc=com" ldap_add: Server is unwilling to perform (53) additional info: no global superior knowledge
I tried the same thing through ldap browser - 'phpldapadmin' but getting the same error.
Where am I going wrong?
Cheers, Parag
On Sun, Sep 20, 2009 at 12:14 PM, Dieter Kluenter dieter@dkluenter.dewrote:
Parag Kalra paragkalra@gmail.com writes:
Hello Folks,
I just installed OpenLDAP ('slapd-2.4.11') and 'ldap-utils' on my Ubuntu
8.10
using Synaptic Manager.
I have following queries related to configuring LDAP on Ubuntu. First & Foremost I am completely new to LDAP so please don't mind if my questions
are
really funny [icon_s]
- After installation the file '/etc/ldap/ldap.conf' doesn't seem to
contain
the parameters like 'rootpw' & 'rootdn'. Am I seeing the wrong file or is there any other ldap configuration file on Ubuntu?
The file /etc/openldap/ldap.conf contains information for ldap clients and not the server configuration. Ubuntu creats the configuration backend cn=config, there should be a directory /etc/openldap/slapd./ which contains all relavant data. This data can be modified by means of the protocol, that is via openldap tools like ldapmodify or a GUI tool to your liking.
- What is my default root node address and how to change it?
you have answered all questions when setting up the server, so you should know.
- My machine doesn't have any FQDN. Its name is - 'station3' and I don't
intend to give it a FQDN. Now my question can I have my root node address
set
to 'dc=station3,dc=home'? If yes, then I guess it has to be through 'ldapmodify' but can someone please share the exact syntax?
The naming of the directory information base is not dependend of the domain name service. The easiest way to modify the database is to delete cn=config and all database files, probably in /var/lib/ldap, and start from scratch.
-Dieter
Dieter Klünter | Systemberatung http://dkluenter.de GPG Key ID:8EF7B6C6 53°37'09,95"N 10°08'02,42"E
Ok Folks,
Just before I was ready to tear my hair out...I have resolved all the issues...
The first issue was that my root base dn was '*dc=nodomain*' and not '* dc=example,dc=com*'...I don't know why 'phpldapadmin' was showing it that way...
I had to upgrade 'phpldapadmin' for it to reflect correct root base dn. For all Ubuntu users I would recommened to use 'phpldapadmin' from SFN rather using it from Ubuntu source.
The second & new issue that I came across was that while adding organisational unit I was getting following error: *0x32 (LDAP_INSUFFICIENT_ACCESS)*
I soon realised that I was logging in as '*cn=admin,dc=config*'. I logged out and logged in back as '*cn=admin,dc=nodomain*' and got rid of all the issues...
Now every thing is working like a breeze...being able to work with both command line and ldap browser :)
Thanks to all of you....
Cheers, Parag
On Sun, Sep 20, 2009 at 12:44 PM, Parag Kalra paragkalra@gmail.com wrote:
Hello All,
First let me thank - Zdenek, I was able to connect to my ldap server using 'phpldapadmin'.
As I am new to LDAP I would again like appologize if my questions are funny...anyways coming back to the problem...
During installation it only asked for the password and not for base root settings. However on doing 'Googly' I found that on Ubuntu the settings are 'cn=admin,cn=config'
Then using the password and above settings I was able to login through 'phpldapadmin'. On logging in I can see my root base dn set to 'dc=example,dc=com'. Kindly correct me if I am wrong - if those are my base root settings I am okay with it. Also PFA screenshot to have a look at my settings.
Now my next aim is to add a organisational unit to it. So my ldiff file looks like following: dn: ou=family,dc=example,dc=com ou: family objectClass: organizationalUnit
# ldapadd -D "cn=admin,cn=config" -W -x -f add_ou.ldiff Enter LDAP Password: adding new entry "ou=family,dc=example,dc=com" ldap_add: Server is unwilling to perform (53) additional info: no global superior knowledge
I tried the same thing through ldap browser - 'phpldapadmin' but getting the same error.
Where am I going wrong?
Cheers, Parag
On Sun, Sep 20, 2009 at 12:14 PM, Dieter Kluenter dieter@dkluenter.dewrote:
Parag Kalra paragkalra@gmail.com writes:
Hello Folks,
I just installed OpenLDAP ('slapd-2.4.11') and 'ldap-utils' on my Ubuntu
8.10
using Synaptic Manager.
I have following queries related to configuring LDAP on Ubuntu. First & Foremost I am completely new to LDAP so please don't mind if my
questions are
really funny [icon_s]
- After installation the file '/etc/ldap/ldap.conf' doesn't seem to
contain
the parameters like 'rootpw' & 'rootdn'. Am I seeing the wrong file or
is
there any other ldap configuration file on Ubuntu?
The file /etc/openldap/ldap.conf contains information for ldap clients and not the server configuration. Ubuntu creats the configuration backend cn=config, there should be a directory /etc/openldap/slapd./ which contains all relavant data. This data can be modified by means of the protocol, that is via openldap tools like ldapmodify or a GUI tool to your liking.
- What is my default root node address and how to change it?
you have answered all questions when setting up the server, so you should know.
- My machine doesn't have any FQDN. Its name is - 'station3' and I
don't
intend to give it a FQDN. Now my question can I have my root node
address set
to 'dc=station3,dc=home'? If yes, then I guess it has to be through 'ldapmodify' but can someone please share the exact syntax?
The naming of the directory information base is not dependend of the domain name service. The easiest way to modify the database is to delete cn=config and all database files, probably in /var/lib/ldap, and start from scratch.
-Dieter
Dieter Klünter | Systemberatung http://dkluenter.de GPG Key ID:8EF7B6C6 53°37'09,95"N 10°08'02,42"E
Parag Kalra wrote:
Ok Folks,
Just before I was ready to tear my hair out...I have resolved all the issues...
The first issue was that my root base dn was '*dc=nodomain*' and not '*dc=example,dc=com*'...I don't know why 'phpldapadmin' was showing it that way...
Perhaps because "dc=example,dc=com" may be the default suggestion from phpldapadmin? Did you ever bother to check phpldapadmin's config file?
I had to upgrade 'phpldapadmin' for it to reflect correct root base dn. For all Ubuntu users I would recommened to use 'phpldapadmin' from SFN rather using it from Ubuntu source.
This is a bad advise. Changing the config file is usually more than sufficient.
The second & new issue that I came across was that while adding organisational unit I was getting following error: *0x32 (LDAP_INSUFFICIENT_ACCESS)*
I soon realised that I was logging in as '*cn=admin,dc=config*'. I logged out and logged in back as '*cn=admin,dc=nodomain*' and got rid of all the issues...
I don't even think "dc=config" exists, unless you created it yourself. You probably mean "cn=config".
If the base DN "dc=nodomain" is not what you need, you can easily run "dpkg-reconfigure slapd" to override the settings automatically set by the Ubuntu installation process.
Finally, you should probably spend some time reading an LDAP introduction, for instance http://www.openldap.org/doc/admin24/quickstart.html.
Good luck,
openldap-technical@openldap.org