Latest Nextcloud version, I’m trying to connect Nextcloud to a Samba 4 AD.
In the Integration App, on the first configuration screen, I need to enter a user DN, that has a form of ‘uid=agent,dc=example,dc=com’.
Where can I find that notation for a given user in Samba 4 AD ?
I can connect to the Samba 4 server, use ‘samba-tool show user’, but none of the entries have this form.
Note that simply replacing ‘uid’ and ‘dc’ entries with mine didn’t work.
Also note that I found the actual ‘distinguishedName’ in “Active Directory Users and Computers”, which has a form of ‘CN=user,OU=IT,OU=Team,OU=UsersOU=Groups,DC=ad,DC=sight-sound,DC=ch’ (because the user is nested in various OU’s), and it doesn’t work with that syntax either.
And here are the logs :
{"reqId":"cmUGGB6ZLucqwoguXCaT","level":2,"time":"2022-11-30T15:23:40+00:00","remoteAddr":"192.168.2.104","user":"admin","app":"user_ldap","method":"POST","url":"/index.php/apps/user_ldap/ajax/getConfiguration.php","message":"Configuration Error (prefix s01): No LDAP Login Filter given!","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"25.0.1.1","data":{"app":"user_ldap"}}
{"reqId":"cmUGGB6ZLucqwoguXCaT","level":2,"time":"2022-11-30T15:23:40+00:00","remoteAddr":"192.168.2.104","user":"admin","app":"user_ldap","method":"POST","url":"/index.php/apps/user_ldap/ajax/getConfiguration.php","message":"Configuration Error (prefix s01): login filter does not contain %uid place holder.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"25.0.1.1","data":{"app":"user_ldap"}}
{"reqId":"zPO8h3bU3SPNPxlVIEFu","level":2,"time":"2022-11-30T15:23:43+00:00","remoteAddr":"192.168.2.104","user":"admin","app":"user_ldap","method":"POST","url":"/index.php/apps/user_ldap/ajax/wizard.php","message":"Configuration Error (prefix s01): No LDAP Login Filter given!","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"25.0.1.1","data":{"app":"user_ldap"}}
{"reqId":"zPO8h3bU3SPNPxlVIEFu","level":2,"time":"2022-11-30T15:23:43+00:00","remoteAddr":"192.168.2.104","user":"admin","app":"user_ldap","method":"POST","url":"/index.php/apps/user_ldap/ajax/wizard.php","message":"Configuration Error (prefix s01): login filter does not contain %uid place holder.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"25.0.1.1","data":{"app":"user_ldap"}}
{"reqId":"zPO8h3bU3SPNPxlVIEFu","level":2,"time":"2022-11-30T15:23:43+00:00","remoteAddr":"192.168.2.104","user":"admin","app":"user_ldap","method":"POST","url":"/index.php/apps/user_ldap/ajax/wizard.php","message":"Configuration Error (prefix s01): No LDAP Login Filter given!","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"25.0.1.1","data":{"app":"user_ldap"}}
{"reqId":"zPO8h3bU3SPNPxlVIEFu","level":2,"time":"2022-11-30T15:23:43+00:00","remoteAddr":"192.168.2.104","user":"admin","app":"user_ldap","method":"POST","url":"/index.php/apps/user_ldap/ajax/wizard.php","message":"Configuration Error (prefix s01): login filter does not contain %uid place holder.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:108.0) Gecko/20100101 Firefox/108.0","version":"25.0.1.1","data":{"app":"user_ldap"}}