Hi buddies,
first of all, the purpose for which I want LDAP working is that I'm trying to setup following chain:
Apache + SSL + LDAP + Subversion + WebDAV + WebSVN.
InfoFollowing advice enable you to ask for credentials and pass
any valid user stored in your LDAP directory. It works without SSL.
Prerequisities- I have my DSM updated to version 3.2
- I have bootstrapped DS-209+ on which I tested it.
- I have installed LDAP directory package from Synology. I have some user, e.x. ldaptester in it.
- I have enabled Webstation so I tested it on Apache originaly supplied with DSM 3.2 (apache 2.2.17).
- Also I've installed apr-util via IPKG.
Take a look at things which needs to be done.- Check if in /usr/syno/apache/modules dir is file named mod_ldap.so. It needs to be there!
- Edit file named /usr/syno/apache/conf/httpd.conf-user (NEVER EVER touch file named httpd.conf-sys !!!) to include your custom ldap enabled configuration file into "Supplemental configuration" section like this:
- Code: Select all
#LDAP test confifuration
Include conf/extra/ldaptest.conf
- Create new configuration file at /usr/syno/apache/conf/extra and name it ldaptest.conf
- Add following configuration lines in it:
- Code: Select all
LoadModule ldap_module modules/mod_ldap.so
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
<Location "/ldaptest">
Order deny,allow
Deny from all
AuthName "LDAP TEST"
AuthType Basic
AuthBasicProvider ldap
AuthzLDAPAuthoritative off
AuthLDAPURL "ldap://localhost:389/dc=DOMAIN,dc=TLD?uid?sub?(objectClass=*)" NONE
AuthLDAPBindDN "uid=LDAPUSER,cn=users,dc=DOMAIN,dc=TLD"
AuthLDAPBindPassword "LDAPUSER_PASSWORD"
Require valid-user
Satisfy any
</Location>
Capitalised words DOMAIN, TLD, LDAPUSER and LDAPUSER_PASSWORD needs to be edited by you according to what you set in your LDAP directory at DSM.
- Create new directory at /volume1/web and name it ldaptest. Insert into it some index.html file with text like "LDAP Works!" or so.
- Last and most important thing you have to do and which is cause of the error mentioned above by me is that you have to copy 3 files from /opt/lib/apr-util-1 to /usr/syno/apache/lib/apr-util-1. These files are:
- Code: Select all
apr-ldap-1.so
apr-ldap.la
apr_ldap.so
How to test itOpen your browser and point it to
http://YOUR_NAS_ADDRESS/ldaptest. Browser ask for credentials and if you enter valid combination of username and password of user stored in your LDAP, it should now work.
Hope this helps.
But I fall in other issue with supplied Apache and SVN over WebDAV. So I'm going to test it at IPKG installed Apache. Synology DS is never ending story.
