LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ldap configuration (https://www.linuxquestions.org/questions/linux-software-2/ldap-configuration-333978/)

linuxlastslonge 06-15-2005 03:31 PM

ldap configuration
 
okay... i'm trying to get ldap to work with slapd. does anyone have a basic ldap.conf and slapd.conf configuration file they could post to help get me going? any help would be appreciated. thanks!

lukebeales 06-17-2005 08:04 AM

these will obviously vary per system but here's mine which works.

slapd.conf:

Code:

        include                /etc/openldap/schema/core.schema
        include                /etc/openldap/schema/cosine.schema
        include                /etc/openldap/schema/inetorgperson.schema
        include                /etc/openldap/schema/nis.schema
        pidfile                /var/ldap/run/slapd.pid
        argsfile                /var/ldap/run/slapd.args
        database                bdb
        suffix                "dc=YOUR_HOSTNAME"
        directory                /var/ldap/openldap-data
        rootdn                "cn=admin,dc=YOUR_HOSTNAME"
        rootpw                ROOT_PASSWORD

probably not the most secure given the password, but i believe that doesn't need to be the system root, just the ldap root. anyway, on to ldap.conf:

Code:

        host                        127.0.0.1
        base                        dc=YOUR_HOSTNAME
        pam_filter                objectclass=posixAccount
        pam_login_attribute        uid
        nss_base_passwd                ou=users,dc=YOUR_HOSTNAME?one
        nss_base_shadow                ou=users,dc=YOUR_HOSTNAME?one
        nss_base_group        ou=groups,dc=YOUR_HOSTNAME?one
        sslno



All times are GMT -5. The time now is 10:23 PM.