Jump to content

User talk:Amaury Palao/Flow

About this board

Connection with ldap doesn't work

1
Amaury Palao (talkcontribs)

Hello, I am trying to authentifie with a distant AD with LDAP. Whenever I try to connect I get : Could not authenticate credentials against domain "domain". I have check with the ldapseach command, and the account is right. This also prove that the account used to bind works.

This is my ldap.json

{

        "domain": {

                "connection": {

                        "server": "xxx.xxxx.xxx.xx",

                        "port": "389",

                        "user": "cn=Manager,dc=test",

                        "pass": "xxxxxxxxxxxxx",

                        "enctype": "clear",

                        "options": {

                                "LDAP_OPT_DEREF": 1

                        },

                        "basedn": "ou=People,dc=test,dc=ca",

                        "userbasedn": "ou=People,dc=test,dc=ca",

                        "groupbasedn": "ou=People,dc=test,dc=ca",

                        "searchstring":"uid=USER-NAME,dc=test,dc=ca",

                        "usernameattribute": "uid",

                        "realnameattribute": "cn",

                        "emailattribute": "mail"

                }

        }

}

Reply to "Connection with ldap doesn't work"

My ldap.json doesn't seems to work

1
Amaury Palao (talkcontribs)

Hello, I get the same error message from the apache log file : [client 132.156.9.193:62252] AH01071: Got error 'PHP message: Found invalid JSON in file: /media/wiki_cits35/ldap.json', referer: http://132.156.9.74:8080/index.php?title=Sp%C3%A9cial:Connexion&returnto=Accueil

However I don't think I have the same probleme. Here is my ldap.json.

{

        "xxxx.xxx.xxx": {

                "connection": {

                        "server": "xxxxx.xxx.xx.xx",

                        "port": "389",

                        "user": "CN=mediawiki-sa,CN=Users,DC=lenfiber,DC=local",

                        "pass": "*******",

                        "enctype": "clear",

                        "options": {

                                "LDAP_OPT_DEREF": 1

                        },

                        "basedn": "dc=nrn,dc=nrcan,dc=gc,dc=ca",

                        "userbasedn": "dc=nrn,dc=nrcan,dc=gc,dc=ca",

                        "groupbasedn": "dc=nrn,dc=nrcan,dc=gc,dc=ca",

                        "searchattribute": "samaccountName",

                        "usernameattribute": "samaccountname",

                        "realnameattribute": "cn",

                        "emailattribute": "mail",

                        "grouprequest": "Mediawiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",

                        "presearchusernamemodifiers": [ "spacestounderscores", "lowercase" ]

                },

                "userinfo": [],

                "authorization": []

                "groupsync": []

                }

        }

}

Thank you for any help

Reply to "My ldap.json doesn't seems to work"
There are no older topics