Topic on Extension talk:LDAPGroups

TypeError for certain users

2
68.111.178.77 (talkcontribs)

Hi all,

I am running MediaWiki 1.33 + LDAP Stack 1.33 on WIMP. Getting a TypeError for certain user accounts at login,


[3028ab2b8a2be600918b0b51] /acmepedia/index.php?title=Special:UserLogin TypeError from line 29 of C:\inetpub\wwwroot\acmepedia\extensions\LDAPGroups\src\Hook.php: Argument 1 passed to LdapGroups\Hook::populateGroups() must be an instance of LdapGroups\User, instance of User given, called in C:\inetpub\wwwroot\acmepedia\includes\Hooks.php on line 174


Here is my ldap.json,

{

"ca.acme.com": {

"connection": {

"server": "dc1.ca.acme.com",

"port": "3268",

"user": "CN=SD.WIKI.SVC,CN=Managed Service Accounts,DC=ca,DC=acme,DC=com",

"pass": "password",

"enctype": "clear",

"options": {

"LDAP_OPT_DEREF": 1

},

"basedn": "dc=ca,dc=acme,dc=com",

"userbasedn": "dc=ca,dc=acme,dc=com",

"groupbasedn": "dc=ca,dc=acme,dc=com",

"searchattribute": "samaccountname",

"usernameattribute": "samaccountname",

"realnameattribute": "displayname",

"emailattribute": "mail",

"grouprequest": "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory"

},

"userinfo": [],

"authorization": [],

"groupsync": {

"mapping": {

"Analysts": "CN=SDAnalysts,OU=Groups,OU=acmeSD,DC=ca,DC=acme,DC=com",

"Developers": "CN=SDDevelopers,OU=Groups,OU=acmeSD,DC=ca,DC=acme,DC=com",

"Uncleared Users": "OU=Uncleared Users,OU=UsersSD,OU=acmeSD,DC=ca,DC=acme,DC=com",

"sysop": "CN=Cybersecurity Team,CN=Users,DC=acme,DC=com",

"SrDevelopers": "CN=Lead Developers,OU=Groups,OU=acmeSD,DC=ca,DC=acme,DC=com",

"SrAnalysts": "CN=SD_SrAnalysts,OU=DistributionLists,OU=Groups,OU=acmeSD,DC=ca,DC=acme,DC=com",

"OfficeAdmins": "CN=SD-Admin,OU=Groups,OU=acmeSD,DC=ca,DC=acme,DC=com"

}

}

}

}


No error when a member of Cybersecurity Team (mapped to sysop) logs in, but everyone else gets the error.

Thanks!

Osnard (talkcontribs)

Looks like you are using an outdated version of "Extension:LdapGroups", Please try to update.

Reply to "TypeError for certain users"