{"id":520,"date":"2018-12-28T11:30:57","date_gmt":"2018-12-28T11:30:57","guid":{"rendered":"http:\/\/www.tinone71.com\/?p=520"},"modified":"2018-12-28T11:30:57","modified_gmt":"2018-12-28T11:30:57","slug":"activate-ldap-user-and-group-backend-for-nextcloud","status":"publish","type":"post","link":"https:\/\/www.tinone71.com\/wp\/?p=520","title":{"rendered":"Activate LDAP user and group backend for Nextcloud"},"content":{"rendered":"<div style=\"\" class=\"ssag-opads-main     \" ><\/div>\n<p>Nextcloud have excelent Apps for integration user and group by LDAP \/ AD. If don&#8217;t have LDAP server check &#8220;<a href=\"https:\/\/www.jurisic.org\/index.php?post\/2017\/02\/17\/How-to-Install-and-configure-a-Basic-LDAP-Server-on-an-Debian\">How to Install and configure a Basic LDAP Server on an Debian 8 Jessie<\/a>&#8221; and&nbsp;continue reading this short example of integration LDAP and Nextcloud.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Activate LDAP user and group backend for Nextcloud<\/h2>\n\n\n\n<p>Login in Nextcloud as Administrator and click on top left dropdown list and select &#8220;Apps&#8221;, then click on &#8220;Not enabled&#8221; and search &#8221;&nbsp;LDAP user and group backend&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.jurisic.org\/public\/screenshots\/nc-apps-ldap.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click on button &#8220;Enable&#8221; and wait 5-10 sec, then click on top right dropdown list.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.jurisic.org\/public\/screenshots\/nc-app-admin.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Click on &#8220;Admin&#8221;, and select &#8220;LDAP \/ AD integration&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.jurisic.org\/public\/screenshots\/nc-ldap-s1.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Enter LDAP connection data and go in section Users.<\/p>\n\n\n\n<p>Hostname: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;localhost<br>LDAP bind user: &nbsp;cn=admin,dc=test,dc=com<br>Password: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;The password that you have choosen.<br>Base DN: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;dc=test,dc=com<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.jurisic.org\/public\/screenshots\/nc-ldap-s2.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Under selection &#8220;Only these object class&#8221; select &#8220;inetOrgPerson&#8221;. Now go in section Login Attributes.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.jurisic.org\/public\/screenshots\/nc-ldap-s3.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Select checkbox &#8220;LDAP \/ AD Username&#8221; and &#8220;LDAP \/ AD Email Address&#8221; (users can&nbsp;login with username or e-mail), then go in section Groups.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.jurisic.org\/public\/screenshots\/nc-ldap-s4.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Under selection &#8220;Only these object class&#8221; select &#8220;posixGroup&#8221; and under &#8220;Only from these groups&#8221; select &#8220;nextcloud&#8221; then go in Advanced settings.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.jurisic.org\/public\/screenshots\/nc-ldap-s5.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>Under Advanced set Special Attributes.&nbsp;<\/p>\n\n\n\n<p>Email Field: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mail<br>User Home Folder: uid<\/p>\n\n\n\n<p>Now can check users, click on top-right dropdown list and select &#8220;Users&#8221;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.jurisic.org\/public\/screenshots\/nc-ldap-users.png\" alt=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">LDAP Expert<\/h2>\n\n\n\n<p>Under Username system generate&nbsp;UUID attribute automatically and that value need to be&nbsp;unique. You can change Internal Username from UUID to uid but that option is open only for expert users.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.jurisic.org\/public\/screenshots\/nc-ldap-expert.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>You can change &#8220;Internal Username&#8221; for example in &#8220;uid&#8221;, and result is:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/www.jurisic.org\/public\/screenshots\/nc-ldap-user3.png\" alt=\"\"\/><\/figure>\n\n\n\n<p>That is all, enjoy in Nextcloud with LDAP integration.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Nextcloud have excelent Apps for integration user and group by LDAP \/ AD. If don&#8217;t have LDAP server<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[8,11,3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/520"}],"collection":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=520"}],"version-history":[{"count":1,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/520\/revisions"}],"predecessor-version":[{"id":521,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=\/wp\/v2\/posts\/520\/revisions\/521"}],"wp:attachment":[{"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=520"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=520"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tinone71.com\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=520"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}