[solved] Nextcloud Connection with Active Directory

Hi,
I’ve a issue for connect NextCloud with AD.

My parameters are

Server : 10.115.100.14
Port (autmatic detection) 389
User DN : uid=nextcloud,DC=tkmf,DC=ad
Password *****
Base DN (write manually) : DC=tkmf,DC=ad

I’ve incorrect Configuraton

Logs

{"reqId":"tiUEyzKAV47w98cO6LyT","level":2,"time":"2017-10-12T09:02:36+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"POST","url":"\/nextcloud\/index.php\/apps\/user_ldap\/ajax\/wizard.php","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"tiUEyzKAV47w98cO6LyT","level":2,"time":"2017-10-12T09:02:36+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"POST","url":"\/nextcloud\/index.php\/apps\/user_ldap\/ajax\/wizard.php","message":"Bind failed: 49: Invalid credentials","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"tiUEyzKAV47w98cO6LyT","level":3,"time":"2017-10-12T09:02:36+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"POST","url":"\/nextcloud\/index.php\/apps\/user_ldap\/ajax\/wizard.php","message":"No LDAP Connection to server 10.115.100.14","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"kS5kkJZbAObL6Dqz6Wwa","level":2,"time":"2017-10-12T09:02:37+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Configuration Error (prefix s01): No LDAP Login Filter given!","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"kS5kkJZbAObL6Dqz6Wwa","level":2,"time":"2017-10-12T09:02:37+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Configuration Error (prefix s01): login filter does not contain %uid place holder.","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"kS5kkJZbAObL6Dqz6Wwa","level":2,"time":"2017-10-12T09:02:37+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Configuration Error (prefix s01): No LDAP Login Filter given!","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"kS5kkJZbAObL6Dqz6Wwa","level":2,"time":"2017-10-12T09:02:37+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Configuration Error (prefix s01): login filter does not contain %uid place holder.","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"kS5kkJZbAObL6Dqz6Wwa","level":2,"time":"2017-10-12T09:02:37+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Configuration Error (prefix s01): No LDAP Login Filter given!","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"kS5kkJZbAObL6Dqz6Wwa","level":2,"time":"2017-10-12T09:02:37+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Configuration Error (prefix s01): login filter does not contain %uid place holder.","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"kS5kkJZbAObL6Dqz6Wwa","level":2,"time":"2017-10-12T09:02:37+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Configuration Error (prefix s01): No LDAP Login Filter given!","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}
{"reqId":"kS5kkJZbAObL6Dqz6Wwa","level":2,"time":"2017-10-12T09:02:37+00:00","remoteAddr":"10.115.100.174","user":"administrateur","app":"user_ldap","method":"GET","url":"\/nextcloud\/ocs\/v2.php\/apps\/notifications\/api\/v2\/notifications","message":"Configuration Error (prefix s01): login filter does not contain %uid place holder.","userAgent":"Mozilla\/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/61.0.3163.100 Safari\/537.36","version":"12.0.2.0"}

hey… i’m aboslutely not into ldap… but i noticed that you tell us about your local ip xx.yyy.zzz.14
and the log is referring to an ip xx.yyy.zzz.174

could it be that easy, just a mistyping somewhere?

or - 2nd guess - UID=nextcloud won’t work correctly. since you try to login as “administrateur” and not via an UID

Hi, Thanks for your help
The ip address with xx.yyy.zzz.174 is mine.

well… as i said, i’m not into ldap. so i was just mentioning the things that caught my attention…

so i’m outta here… and am sure that someone else is gonna solve this problem

all is ok,
the issue was the server’s parameter
with prefix ldap:// all is ok.
my parameter : ldap://10.115.100.14

issue solved