Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
tech:ubuntu_ldap [13-Oct-2011 9:26am] – created ian | tech:ubuntu_ldap [13-Oct-2011 11:37am] (current) – Title update ian | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== OpenLDAP: Installation and Configuration |
Often it is advantageous to have authentication, | Often it is advantageous to have authentication, | ||
Line 37: | Line 37: | ||
===== Schema Creation ===== | ===== Schema Creation ===== | ||
A schema defines the objects and attributes in the LDAP database. | A schema defines the objects and attributes in the LDAP database. | ||
+ | |||
+ | <note important> | ||
Log on and become root: | Log on and become root: | ||
Line 47: | Line 49: | ||
ldapadd -Y EXTERNAL -H ldapi:/// -f / | ldapadd -Y EXTERNAL -H ldapi:/// -f / | ||
ldapadd -Y EXTERNAL -H ldapi:/// -f / | ldapadd -Y EXTERNAL -H ldapi:/// -f / | ||
- | |||
- | For each of the additional application schema definitions below, download the file to '' | ||
- | |||
- | < | ||
- | |||
- | If you would like to see which schema modifications are already loaded or verify that they have loaded correctly, type | ||
- | |||
- | < | ||
==== Sudo via LDAP ==== | ==== Sudo via LDAP ==== | ||
Line 89: | Line 83: | ||
| | ||
</ | </ | ||
+ | |||
+ | Apply the schema modifications with the following command: | ||
+ | |||
+ | < | ||
==== Password Policy ==== | ==== Password Policy ==== | ||
Line 140: | Line 138: | ||
$ pwdAllowUserChange $ pwdSafeModify ) ) | $ pwdAllowUserChange $ pwdSafeModify ) ) | ||
</ | </ | ||
+ | |||
+ | Apply the schema modifications with the following command: | ||
+ | |||
+ | < | ||
==== Thunderbird Contacts ==== | ==== Thunderbird Contacts ==== | ||
Line 203: | Line 205: | ||
$ title ) ) | $ title ) ) | ||
</ | </ | ||
+ | |||
+ | Apply the schema modifications with the following command: | ||
+ | |||
+ | < | ||
==== FreeRADIUS ==== | ==== FreeRADIUS ==== | ||
Line 406: | Line 412: | ||
top STRUCTURAL MUST cn MAY ( uid $ userPassword $ description ) ) | top STRUCTURAL MUST cn MAY ( uid $ userPassword $ description ) ) | ||
</ | </ | ||
+ | |||
+ | Apply the schema modifications with the following command: | ||
+ | |||
+ | < | ||
==== Pure FTP ==== | ==== Pure FTP ==== | ||
Line 411: | Line 421: | ||
To control [[http:// | To control [[http:// | ||
- | <file ldif pureftpd.schema> | + | <file ldif pureftpd.ldif> |
dn: cn=pureftpd, | dn: cn=pureftpd, | ||
objectClass: | objectClass: | ||
Line 447: | Line 457: | ||
$ FTPUploadBandwidth $ FTPDownloadBandwidth $ FTPuid $ FTPgid ) ) | $ FTPUploadBandwidth $ FTPDownloadBandwidth $ FTPuid $ FTPgid ) ) | ||
</ | </ | ||
+ | |||
+ | Apply the schema modifications with the following command: | ||
+ | |||
+ | < | ||
==== SAMBA v3 ==== | ==== SAMBA v3 ==== | ||
Line 675: | Line 689: | ||
n $ description ) ) | n $ description ) ) | ||
</ | </ | ||
+ | |||
+ | Apply the schema modifications with the following command: | ||
+ | |||
+ | < | ||
==== Apple OS X ==== | ==== Apple OS X ==== | ||
Line 1253: | Line 1271: | ||
| | ||
</ | </ | ||
+ | |||
+ | Apply the schema modifications with the following commands: | ||
+ | |||
+ | < | ||
+ | ldapadd -Y EXTERNAL -H ldapi:/// -f apple.ldif</ | ||
===== Configuration ===== | ===== Configuration ===== | ||
Line 1358: | Line 1381: | ||
< | < | ||
- | |||
- | The above command can be used with the files below to add the required application functionality into the database. | ||
==== Sudo ==== | ==== Sudo ==== | ||
Line 1385: | Line 1406: | ||
sudoCommand: | sudoCommand: | ||
</ | </ | ||
+ | |||
+ | To import this file we must use the following command and enter the directory administrator' | ||
+ | |||
+ | < | ||
To improve the performance of sudoers lookups via LDAP, we must add an additional index: | To improve the performance of sudoers lookups via LDAP, we must add an additional index: | ||
Line 1428: | Line 1453: | ||
pwdSafeModify: | pwdSafeModify: | ||
</ | </ | ||
+ | |||
+ | To import this file we must use the following command and enter the directory administrator' | ||
+ | |||
+ | < | ||
To load the password policy overlay and point it to the default policy, we must download the following file: | To load the password policy overlay and point it to the default policy, we must download the following file: | ||
Line 1474: | Line 1503: | ||
uniquemember: | uniquemember: | ||
</ | </ | ||
+ | |||
+ | To import this file we must use the following command and enter the directory administrator' | ||
+ | |||
+ | < | ||
To improve the performance of e-mail address lookups via LDAP, we must add an additional index: | To improve the performance of e-mail address lookups via LDAP, we must add an additional index: | ||
Line 1663: | Line 1696: | ||
objectClass: | objectClass: | ||
</ | </ | ||
+ | |||
+ | To import this file we must use the following command and enter the directory administrator' | ||
+ | |||
+ | < | ||
===== Security ===== | ===== Security ===== | ||
Line 1761: | Line 1798: | ||
Examine the tail of ''/ | Examine the tail of ''/ | ||
+ | |||
+ | If you would like to see which schema modifications have been loaded, type | ||
+ | |||
+ | < | ||
===== See Also ===== | ===== See Also ===== | ||
* [[sigma: | * [[sigma: | ||
* [[sigma: | * [[sigma: |