I am running two machines with FreeBSD 11.0-RELEASE. Machine 1 is running OpenLDAP server and Machine 2 is configured as a client for OpenLDAP. I am trying to make the simplest LDAP server/client setup possible, just to get it working. There is no TLS or SSL required on the server.
My config files on the client macine
/usr/local/etc/openldap/ldap.conf
From here I can run
Does this mean I am connecting just fine so far? My next goal is to use the
I have openldap-client nss_ldap and pam_ldap installed on the client.
My /usr/local/etc/ldap.conf and /usr/local/etc/nss_ldap.conf are the same file with these settings
When I run id csmith and getent passwd csmith it returns is no such user. There seems to be no way to tell what is happening when id or getent are ran to see if they are even successfully connecting to LDAP.
What do I have to do to get the client to work?
My config files on the client macine
/usr/local/etc/openldap/ldap.conf
From here I can run
ldapsearch
and I get output
Code:
# Casey Smith, people, acme.com
dn: cn=Casey Smith,ou=people,dc=acme,dc=com
objectClass: inetOrgPerson
cn: Casey Smith
cn: Casey
sn: Smith
uid: csmith
mail: casey@acme.com
mail: c.smith@acme.com
ou: sales
userPassword:: e1NTSEF9U1htMXQwVkUwQUtsZklhRDVGdnY3SHFFZElHTi9ZaUw=
# search result
search: 2
result: 0 Success
# numResponses: 8
# numEntries: 7
Does this mean I am connecting just fine so far? My next goal is to use the
id
and getent
tools to see if it's grabbing user stuff from LDAP.I have openldap-client nss_ldap and pam_ldap installed on the client.
My /usr/local/etc/ldap.conf and /usr/local/etc/nss_ldap.conf are the same file with these settings
Code:
base dc=acme,dc=com
uri ldap://admin.acme.com
pam_login_attribute uid
When I run id csmith and getent passwd csmith it returns is no such user. There seems to be no way to tell what is happening when id or getent are ran to see if they are even successfully connecting to LDAP.
What do I have to do to get the client to work?