CentOS 5.x Samba Domain Controller With LDAP Backend

Discussion in 'HOWTO-Related Questions' started by c0mputernick, Mar 30, 2011.

  1. c0mputernick

    c0mputernick New Member

    Hello All,

    Ive been trying to follow through the instructions on setting up a Samba Domain Controller and get down to this section and it keeps giving me an error.

    Insert the following text into /etc/openldap/init.ldif:

    dn: dc=mydomain,dc=com
    objectclass: dcObject
    objectclass: organization
    o: Domain Controller
    dc: mydomain,dc=com
    dn: cn=root,dc=mydomain,dc=com
    objectclass: organizationalRole
    cn: root

    The error:
    str2entry: entry -1 has multiple DNs "dc=mydomain,dc=com" and "cn=root,dc=mydomain,dc=com"
    slapadd: could not parse entry (line=9)

    Ive search all over google and this forum and cant seem to find a resolution.
    There is no line9 in the config file either.

    As stated in the how to if i wanted to use my fqdn replace DOMAINNAME with my fqdn "Note: If you want to use your fqdn for your Samba domain, wherever you see ,dc=DOMAINNAME below, replace it with ,dc=example,dc=com, assuming your fqdn is example.com"

    And i hope ive done that correctly.

    Seems pretty simple, i just dont see where the error is.

    Any help would be much appreciated.

  2. c0mputernick

    c0mputernick New Member

    Ok, no takers.

    Could someone at least look at their /etc/openldap/init.ldif file and tell me if mine is way off or something?

    Ive looked at other examples on this site and it looks correct. I just want to use my fqdn instead of DOMAINNAME like in the tutorial.


Share This Page