Understanding the ldap tables. Simple example setup. PostgreSQL vs. MS SQL Server. A comparison of two relational databases from the point of view of a data analyst. Setting up the MUA for the test database. Some LDAP Attributes. SQL to LDAP Misc. Samba specific Has been removed Dealt with Samba TNG. Heres how I did it. Part of this assumes you want to use a database as a backend, but you can skip that if you want. I also have instructions for setting up Samba TNGs andor Samba 3. LDAP backend in this. For those who want backsql, just ignore the samba tng andor samba 3. For Samba TNG and Samba this is also a good site to read http www. General 1 Download Open. LDAPIf you want backsql support you will need to compile the program yourself. If you dont want backsql support, then the RPM should do fine. For compiling LDAP support into a program you will also need the openldap devel RPM installed as well. To compile it yourself, I recommend getting the latest stable version http www. I started using 2. My. SQL and 2. 1. Postgre. SQL. 2 Unpackgunzip nameof. Configure, Make, and Install. Cd into the openldap directory. Note that if you want to use Open. LDAP without the sql backend you will also need the db. There may be other packages you need depending on what you want support for. For back sql youll need to install the unix. ODBC devel rpm or libiodbc develRun. I used note the last one is for back sql. Use. configure helpto see all the options. Then make dependmake. When you are ready to install make install. Building an RPM w back sql. For those of you interested in compiling your own RPMs, here is what I did. Installed Red. Hats source rpm latest rpm ivh openldap version. SPECSChanged the openldap. Installed the necessary packages for compiling. Try a rpmbuild bp nobuild openldap. Ran rpmbuild bi openldap. Ran rpmbuild bb openldap. Note I am running rpm 4. See rpm. org for the latest. To download my rpm or view my full spec file, go here. Here are the spec file changes I made to Red. Hats v. 2. 0. 2. NC. Summary The configuration files, libraries, and documentation for Open. LDAP. Version 2. Release 2. License Open. LDAP. Open. LDAP is an open source suite of LDAP Lightweight Directory Access. Protocol applications and development tools. LDAP is a set of. Internet. similar to the way DNS Domain Name System information is propagated. How To Install Mysql On Fedora 21 Minimum. Internet. This package contains the slapd and slurpd servers. Built with back sql support. If you are using RH8 you will need to update libtool to v. Here are the changes I made to the spec file from openldap 2. Version 2. 1. 2. Open. LDAP is an open source suite of LDAP Lightweight Directory Access. Protocol applications and development tools. LDAP is a set of. Internet. similar to the way DNS Domain Name System information is propagated. Internet. This package contains the slapd and slurpd servers. Built with back sql support. CFLAGSCPPFLAGS RPMOPTFLAGS DREENTRANT f. PIC export CFLAGS. Build the servers with Kerberos support for password checking, mainly. CPPFLAGSOPENSSLCPPFLAGS Idbdirinclude Iusrkerberosinclude export CPPFLAGS. LDFLAGSOPENSSLLDFLAGS Ldbdirlib Lusrkerberoslib export LDFLAGS. README. migration TOOLS. RPMSOURCEDIRREADME. RPMSOURCEDIRguide. Note that the Red. Hat openldap package takes a while to build and a lot of disk space. Once the binary rpm is built you can install it from the RPMSi. Edit slapd. conf. First you will need to generate the encrypted password to place in the config file. Some folks use MD5, Im using crypt. Generate it by running slappasswd h cryptand type in the password. It will spit out the string you need. Note I am only showing the bare minimum for what is needed for the back sql sample database andor samba tng andor samba 3. Slapd. conf for Open. LDAP v. 2. 1. 2. 2 Postgre. SQL, no samba stuff Open. LDAP pkgldapserversslapdslapd. See slapd. conf5 for details on configuration options. This file should NOT be world readable. Allow LDAPv. 2 client connections. This is NOT the default. Do not enable referrals until AFTER you have a working directory service AND an understanding of referrals. Timeout in seconds, 0 neveridletimeout 0threads 3. Debuging level, 0 noneloglevel 6. Only need if not using the ldbmbdb stuff belowrootdn cnmanager,dccpm inc,dccomrootpw crypty. Zx. 0a. 4mgdbname contactsdbuser ldapacdbpasswd ldapaclastmodoff new to Open. LDAP v. 2. 1. xhasldapinfodnru no Postgre. SQLinsentryquery insert into ldapentries id,dn,ocmapid,parent,keyval values select maxid1 fromldapentries,upperfunc upperstrcastfunc textconcatpattern. Zx. 0a. 4mg. The database directory MUST exist prior to running slapd AND should only be accessible by the slapd and slap tools. Mode 7. Indices to maintain for this databaseindex object. Class eq,presindex ou,cn,mail,surname,givenname eq,pres,subindex uid. Number,gid. Number,login. Shell eq,presindex uid,member. Uid eq,pres,subindex nis. Map. Name,nis. Map. Entry eq,pres,sub. Set the user. Password so that it can be changed by the entry owning it if they are authenticated. Others should not be able to see it, except the admin entry below Note include lm. Password and nt. Password if using a sambatng schemaaccess to dn. Passwordby selfwriteby dncnmanager,dcexample,dccomwriteaccess todn. Replicas of this databasereplogfile varlibldapopenldap master replogreplica hostldap 1. GSSAPI authc. Idhostldap master. EXAMPLE. COMFor Open. LDAP v. 2. 1. x see also man slapd sql. Older slapd. conf for Open. LDAP v. 2. 0. 2. 7 My. SQL Open. LDAP pkgldapserversslapdslapd. See slapd. conf5 for details on configuration options. This file should NOT be world readable. For hordeimpturba. Comes with horde. Copy the file there to the location specified here. NOTE you cannot have both TNG 3. I saw For samba tng. This is found in cvs dirtngldap. Copy the file there to the location specified here. For samba 3. 0 alpha. This is found in cvs dirsambaexamplesLDAP. Copy the file there to the location specified here. Timeout in seconds, 0 neveridletimeout 0threads 3. Debuging level, 0 noneloglevel 3.