Find the answer to your Linux question:
Results 1 to 2 of 2
I am trying to configure an LDAP server from this tutorial http: // olex. openlogic. com/wazi/2011/using-openldap-for-remote-authentication and I am able to add the root user that I configured as the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    5

    Setting up OpenLDAP


    I am trying to configure an LDAP server from this tutorial
    http: // olex. openlogic. com/wazi/2011/using-openldap-for-remote-authentication

    and I am able to add the root user that I configured as the rootdn in olcDatabase={2}bdb.ldif and the People organizational unit.
    The slapcat command displays

    dn: dc=example,dc=com
    dc: example
    objectClass: dcObject
    objectClass: organization
    o: example
    structuralObjectClass: organization
    entryUUID: 1c3aa0f6-cb39-1030-88d4-936e9cd5d7ab
    creatorsName: cn=root,dc=example,dc=com
    createTimestamp: 20120104160130Z
    entryCSN: 20120104160130.429009Z#000000#000#000000
    modifiersName: cn=root,dc=example,dc=com
    modifyTimestamp: 20120104160130Z

    dn: ou=People,dc=example,dc=com
    ou: People
    objectClass: organizationalUnit
    structuralObjectClass: organizationalUnit
    entryUUID: 47d2150a-cb39-1030-88d5-936e9cd5d7ab
    creatorsName: cn=root,dc=example,dc=com
    createTimestamp: 20120104160243Z
    entryCSN: 20120104160243.563607Z#000000#000#000000
    modifiersName: cn=root,dc=example,dc=com
    modifyTimestamp: 20120104160243Z


    In the user.ldif template I replace openlogic with example and user1 with server1 but when I enter ldapmodify -xD "cn=server1,dc=example,dc=com" -W -f user.ldif I get

    ldap_bind: Invalid credentials (49)


    Does anyone have any suggestions?.

  2. #2
    Just Joined!
    Join Date
    Sep 2010
    Posts
    5
    Wow, over 100 views and 0 replies. I guess no one wants to touch this one. I made some progress on this. I made an example.ldif file that looks like this

    dn: dc=example,dc=com
    dc: example
    objectClass: dcObject
    objectClass: organization
    organizationName: example

    dn: ou=people, dc=example,dc=com
    ou: people
    objectclass: organizationalUnit

    dn: cn=ldapusers,ou=people,dc=example,dc=com
    objectClass: posixGroup
    objectClass: top
    cn: ldapusers
    gidNumber: 504
    memberUid: server1

    dn: uid=server1,ou=people,dc=example,dc=com
    uid: server1
    cn: server1
    objectClass: account
    objectClass: posixAccount
    objectClass: top
    objectClass: shadowAccount
    userPassword: {crypt}$6$5Ujas498$O5DFtYgxIG2j4l5Lp/KJCHtvuYycYxSjY6fMw7oU1UBy8c656SnE.hpFPL196efPmLKy Ga.ko.01cNcSQ7gRe.
    shadowLastChange: 15343
    shadowMax: 99999
    shadowWarning: 7
    loginShell: /bin/bash
    uidNumber: 501
    gidNumber: 504
    homeDirectory: /home/server1

    I entered service slapd stop and slapadd -l /etc/openldap/example.ldif and that worked.
    Now I have to use NFS to mount the home directory on my virtual machine from my physical machine.

    I made an automount.ldif file that contains

    dn: ou=auto.master,dc=example,dc=com
    ou: auto.master
    objectClass: top
    objectClass: automountMap

    dn: cn=/home,ou=auto.master,dc=example,dc=com
    objectClass: automount
    cn: /home
    automountInformation: ldap:ds.example.com:ou=auto.home,dc=example,dc=com

    dn: ou=auto.home,dc=example,dc=com
    ou: auto.home
    objectClass: top
    objectClass: organizationalUnit
    objectClass: automountmap

    dn: cn=/,ou=auto.home,dc=example,dc=com
    cn: /
    objectClass: automount
    automountInformation: -rsize=8192,wsize=8192,intr NfsServer.example.com:/home/&

    but when I enter slapadd -l /etc/openldap/automount.ldif it says slapadd: could not parse entry (line=1)
    Does anyone know what the problem is?.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •