Skip to main content
Added output of the initial attributes
Source Link
Ingo
  • 726
  • 1
  • 11
  • 19

On a Debian Buster installation I have just installed the OpenLDAP server slapd with:

~$ sudo apt install slapd ldap-utils ~$ sudo dpkg-reconfigure slapd 

On its setup with default options I was prompted to give an organisation name. I used home, so I get

~$ ldapsearch -x -LLL -b dc=hoeft-online,dc=de dn: o=homedc=hoeft-online,dc=de objectClass: top objectClass: dcObject objectClass: organization o: home dc: hoeft-online dn: cn=admin,dc=hoeft-online,dc=de objectClass: simpleSecurityObject objectClass: organizationalRole cn: admin description: LDAP administrator 

Now I try to add an organisational unit (ou) to the organisation (o)o: home as shown in the output but without success with:

~$ cat add.ldif dn: ou=posix,o=home,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,o=home,dc=hoeft-online,dc=de" ldap_add: No such object (32) matched DN: dc=hoeft-online,dc=de 

Adding an ou to the domainComponent (dc) works:

~$ cat add.ldif dn: ou=posix,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,dc=hoeft-online,dc=de" 

What I'm missing here? Isn't it possible to add an organizationalUnit (ou) to an organisation (o)? If not, why? Where is it defined?

On a Debian Buster installation I have just installed the OpenLDAP server slapd with:

~$ sudo apt install slapd ldap-utils ~$ sudo dpkg-reconfigure slapd 

On its setup with default options I was prompted to give an organisation name. I used home, so I get

dn: o=home,dc=hoeft-online,dc=de 

Now I try to add an organisational unit (ou) to the organisation (o) without success with:

~$ cat add.ldif dn: ou=posix,o=home,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,o=home,dc=hoeft-online,dc=de" ldap_add: No such object (32) matched DN: dc=hoeft-online,dc=de 

Adding an ou to the domainComponent (dc) works:

~$ cat add.ldif dn: ou=posix,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,dc=hoeft-online,dc=de" 

What I'm missing here? Isn't it possible to add an organizationalUnit (ou) to an organisation (o)? If not, why? Where is it defined?

On a Debian Buster installation I have just installed the OpenLDAP server slapd with:

~$ sudo apt install slapd ldap-utils ~$ sudo dpkg-reconfigure slapd 

On its setup with default options I was prompted to give an organisation name. I used home, so I get

~$ ldapsearch -x -LLL -b dc=hoeft-online,dc=de dn: dc=hoeft-online,dc=de objectClass: top objectClass: dcObject objectClass: organization o: home dc: hoeft-online dn: cn=admin,dc=hoeft-online,dc=de objectClass: simpleSecurityObject objectClass: organizationalRole cn: admin description: LDAP administrator 

Now I try to add an organisational unit (ou) to the organisation o: home as shown in the output but without success:

~$ cat add.ldif dn: ou=posix,o=home,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,o=home,dc=hoeft-online,dc=de" ldap_add: No such object (32) matched DN: dc=hoeft-online,dc=de 

Adding an ou to the domainComponent (dc) works:

~$ cat add.ldif dn: ou=posix,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,dc=hoeft-online,dc=de" 

What I'm missing here? Isn't it possible to add an organizationalUnit (ou) to an organisation (o)? If not, why? Where is it defined?

Added Debian version "Buster".
Source Link
Ingo
  • 726
  • 1
  • 11
  • 19

On a Debian Buster installation I have just installed the OpenLDAP server slapd with:

~$ sudo apt install slapd ldap-utils ~$ sudo dpkg-reconfigure slapd 

On its setup with default options I was prompted to give an organisation name. I used home, so I get

dn: o=home,dc=hoeft-online,dc=de 

Now I try to add an organisational unit (ou) to the organisation (o) without success with:

~$ cat add.ldif dn: ou=posix,o=home,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,o=home,dc=hoeft-online,dc=de" ldap_add: No such object (32) matched DN: dc=hoeft-online,dc=de 

Adding an ou to the domainComponent (dc) works:

~$ cat add.ldif dn: ou=posix,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,dc=hoeft-online,dc=de" 

What I'm missing here? Isn't it possible to add an organizationalUnit (ou) to an organisation (o)? If not, why? Where is it defined?

On a Debian installation I have just installed the OpenLDAP server slapd with:

~$ sudo apt install slapd ldap-utils ~$ sudo dpkg-reconfigure slapd 

On its setup with default options I was prompted to give an organisation name. I used home, so I get

dn: o=home,dc=hoeft-online,dc=de 

Now I try to add an organisational unit (ou) to the organisation (o) without success with:

~$ cat add.ldif dn: ou=posix,o=home,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,o=home,dc=hoeft-online,dc=de" ldap_add: No such object (32) matched DN: dc=hoeft-online,dc=de 

Adding an ou to the domainComponent (dc) works:

~$ cat add.ldif dn: ou=posix,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,dc=hoeft-online,dc=de" 

What I'm missing here? Isn't it possible to add an organizationalUnit (ou) to an organisation (o)? If not, why? Where is it defined?

On a Debian Buster installation I have just installed the OpenLDAP server slapd with:

~$ sudo apt install slapd ldap-utils ~$ sudo dpkg-reconfigure slapd 

On its setup with default options I was prompted to give an organisation name. I used home, so I get

dn: o=home,dc=hoeft-online,dc=de 

Now I try to add an organisational unit (ou) to the organisation (o) without success with:

~$ cat add.ldif dn: ou=posix,o=home,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,o=home,dc=hoeft-online,dc=de" ldap_add: No such object (32) matched DN: dc=hoeft-online,dc=de 

Adding an ou to the domainComponent (dc) works:

~$ cat add.ldif dn: ou=posix,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,dc=hoeft-online,dc=de" 

What I'm missing here? Isn't it possible to add an organizationalUnit (ou) to an organisation (o)? If not, why? Where is it defined?

Updated with installation details
Source Link
Ingo
  • 726
  • 1
  • 11
  • 19

On a Debian installation I have just installed the OpenLDAP server slapd. with:

~$ sudo apt install slapd ldap-utils ~$ sudo dpkg-reconfigure slapd 

On its initial setup with default options I hadwas prompted to give an organisation name. I used home, so I get

dn: o=home,dc=hoeft-online,dc=de 

Now I try to add an organisational unit (ou) to the organisation (o) without success with:

~$ cat add.ldif dn: ou=posix,o=home,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,o=home,dc=hoeft-online,dc=de" ldap_add: No such object (32) matched DN: dc=hoeft-online,dc=de 

Adding an ou to the domainComponent (dc) works:

~$ cat add.ldif dn: ou=posix,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,dc=hoeft-online,dc=de" 

What I'm missing here? Isn't it possible to add an organizationalUnit (ou) to an organisation (o)? If not, why? Where is it defined?

On a Debian installation I have just installed the OpenLDAP server slapd. On its initial setup I had to give an organisation name. I used home, so I get

dn: o=home,dc=hoeft-online,dc=de 

Now I try to add an organisational unit (ou) to the organisation (o) without success with:

~$ cat add.ldif dn: ou=posix,o=home,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,o=home,dc=hoeft-online,dc=de" ldap_add: No such object (32) matched DN: dc=hoeft-online,dc=de 

Adding an ou to the domainComponent (dc) works:

~$ cat add.ldif dn: ou=posix,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,dc=hoeft-online,dc=de" 

What I'm missing here? Isn't it possible to add an organizationalUnit (ou) to an organisation (o)? If not, why? Where is it defined?

On a Debian installation I have just installed the OpenLDAP server slapd with:

~$ sudo apt install slapd ldap-utils ~$ sudo dpkg-reconfigure slapd 

On its setup with default options I was prompted to give an organisation name. I used home, so I get

dn: o=home,dc=hoeft-online,dc=de 

Now I try to add an organisational unit (ou) to the organisation (o) without success with:

~$ cat add.ldif dn: ou=posix,o=home,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,o=home,dc=hoeft-online,dc=de" ldap_add: No such object (32) matched DN: dc=hoeft-online,dc=de 

Adding an ou to the domainComponent (dc) works:

~$ cat add.ldif dn: ou=posix,dc=hoeft-online,dc=de objectClass: organizationalUnit ou: posix ~$ ldapadd -xWD cn=admin,dc=hoeft-online,dc=de -f add.ldif Enter LDAP Password: adding new entry "ou=posix,dc=hoeft-online,dc=de" 

What I'm missing here? Isn't it possible to add an organizationalUnit (ou) to an organisation (o)? If not, why? Where is it defined?

Fixed typo
Source Link
Ingo
  • 726
  • 1
  • 11
  • 19
Loading
Improved wording
Source Link
Ingo
  • 726
  • 1
  • 11
  • 19
Loading
Source Link
Ingo
  • 726
  • 1
  • 11
  • 19
Loading