Skip to content

Instantly share code, notes, and snippets.

@scottslowe
Created December 20, 2014 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottslowe/722dc11cd7967c6ea12b to your computer and use it in GitHub Desktop.
Save scottslowe/722dc11cd7967c6ea12b to your computer and use it in GitHub Desktop.
This LDAP configuration file can be used for integrating Linux into older versions of Active Directory that rely upon SFU (Services for UNIX) for UNIX attributes in the schema.
host 10.10.10.10
base dc=example,dc=com
binddn cn=ldap,cn=Users,dc=example,dc=com
bindpw adldapbindpw
scope sub
ssl no
nss_base_passwd dc=example,dc=com
nss_base_shadow dc=example,dc=com
nss_base_group dc=example,dc=com
nss_map_objectclass posixAccount user
nss_map_objectclass shadowAccount user
nss_map_objectclass posixGroup group
nss_map_attribute uid sAMAccountName
nss_map_attribute uidNumber msSFU30UidNumber
nss_map_attribute gidNumber msSFU30GidNumber
nss_map_attribute loginShell msSFU30LoginShell
nss_map_attribute gecos name
nss_map_attribute userPassword msSFU30Password
nss_map_attribute homeDirectory msSFU30HomeDirectory
nss_map_attribute uniqueMember msSFU30PosixMember
nss_map_attribute cn cn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment