{"id":1049,"date":"2018-09-21T13:46:12","date_gmt":"2018-09-21T11:46:12","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=1049"},"modified":"2018-09-21T13:47:20","modified_gmt":"2018-09-21T11:47:20","slug":"ldap-authentication-with-proftpd-on-freebsd-11-2","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=1049","title":{"rendered":"LDAP authentication with ProFTPd on FreeBSD 11.2"},"content":{"rendered":"<p>\n\tYou can use LDAP authentication with ProFTPd. Simply install proftpd-mod_ldap with\n<\/p>\n<pre>\r\n# pkg install proftpd-mod_ldap<\/pre>\n<p>\n\tafterwards edit your proftpd.conf file an enable ldap authen:\n<\/p>\n<pre>\r\nLoadModule mod_ldap.c\r\n&lt;IfModule mod_ldap.c&gt;\r\n    AuthOrder mod_ldap.c\r\n    LDAPLog \/var\/log\/proftpd\/ldap.log\r\n    LDAPAuthBinds on\r\n    LDAPServer myhost\r\n    LDAPUseTLS on\r\n    LDAPBindDN &quot;CN=mybinduser,DC=domain,DC=local&quot; &quot;mybindpw&quot;\r\n    LDAPUsers  &quot;DC=domain,DC=local&quot; &quot;(&amp;(sAMAccountName=%u)(objectclass=user))&quot;\r\n    LDAPAttr uid sAMAccountName\r\n    LDAPAttr gidNumber primaryGroupID\r\n    LDAPDefaultUID 65534\r\n    LDAPDefaultGID 65534\r\n    RequireValidShell off\r\n    LDAPSearchScope subtree\r\n    LDAPGenerateHomedir on\r\n    LDAPGenerateHomedirPrefix \/home\r\n    CreateHome on\r\n&lt;\/IfModule&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>You can use LDAP authentication with ProFTPd. Simply install proftpd-mod_ldap with # pkg install proftpd-mod_ldap afterwards edit your proftpd.conf file an enable ldap authen: LoadModule mod_ldap.c &lt;IfModule mod_ldap.c&gt; AuthOrder mod_ldap.c LDAPLog \/var\/log\/proftpd\/ldap.log LDAPAuthBinds on LDAPServer myhost LDAPUseTLS on LDAPBindDN &quot;CN=mybinduser,DC=domain,DC=local&quot; &quot;mybindpw&quot; LDAPUsers &quot;DC=domain,DC=local&quot; &quot;(&amp;(sAMAccountName=%u)(objectclass=user))&quot; LDAPAttr uid sAMAccountName LDAPAttr gidNumber primaryGroupID LDAPDefaultUID 65534 LDAPDefaultGID 65534 RequireValidShell [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-1049","post","type-post","status-publish","format-standard","hentry","category-linuxunix","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1049"}],"version-history":[{"count":1,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1049\/revisions"}],"predecessor-version":[{"id":1050,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1049\/revisions\/1050"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}