User talk:Prabhu7778
Add topic| This page used the Structured Discussions extension to give structured discussions. It has since been converted to wikitext, so the content and history here are only an approximation of what was actually displayed at the time these comments were made. |
The supplied credentials are not associated with any user on this wiki.
[edit]@Osnard Hi Please help me here.
Mediawiki1.35 , LdapAuth2
My LDAP debug shows
Authenticated new user:
User is authorized.
But in the web is shows : The supplied credentials are not associated with any user on this wiki.
Local Settings PHP, Domain config is set in php array.
#LDAP PROVIDER
#####################################
wfLoadExtension( 'LDAPAuthentication2' );
wfLoadExtension( 'PluggableAuth' );
wfLoadExtension( 'LDAPProvider' );
$wgPluggableAuth_ButtonLabelMessage = "Login";
$LDAPAuthentication2AllowLocalLogin = false;
$wgGroupPermissions['*']['autocreateaccount'] = true;
wfLoadExtension( 'LDAPUserInfo' );
$LDAPAuthorizationAutoAuthRemoteUserStringParser = 'username-at-domain';
$LDAPProviderDomainConfigProvider = function() {
$config = [
'###' => [
'connection' => [
"server" => "####",
"port" => 6#6,
"enctype" => 'ssl',
"user" => "CN=y##,OU=Service Accounts,OU=##L,OU=###,DC=##,DC=##t",
"pass" => '###',
"options" => [
"LDAP_OPT_DEREF" => 1
],
"basedn" => "DC=##l",
"usernameattribute" => "samaccountname",
"realnameattribute" => "cn",
"emailattribute" => "mail",
"searchattribute" => "samaccountname",
"grouprequest" => "MediaWiki\\Extension\\LDAPProvider\\UserGroupsRequest\\UserMemberOf::factory",
"searchstring" => "USER-NAME"
]
]
];
return new \MediaWiki\Extension\LDAPProvider\DomainConfigProvider\InlinePHPArray( $config ); Prabhu7778 (talk) 14:16, 1 September 2021 (UTC)
- I get this error when LDAPAuthorization extension is loaded.
- /index.php/Special:PluggableAuthLogin MWException from line 66 of /var/www/html/myitwiki/extensions/LDAPProvider/src/DomainConfigFactory.php: No section 'authorization' found in configuration for domain 'VDS'!
- + Showgroup > is not showing any groups , Tried with both Unique member and member of Prabhu7778 (talk) 15:35, 1 September 2021 (UTC)
- ldap_search( $linkID, $baseDN = 'DC=###l', $filter = '(samaccountname=####)', $attributes = [ '*', 'memberof' ], $attrsonly = , $sizelimit = , $timelimit = , $deref = );
- i: # returns Resource id #789
- i#####################: ldap_count_entries( $linkiID, $result = 'Resource id #789' );
- 2021-09-02 09:09:38####i: # returns 0
- 2021-09-02 09:09:38##### : Could not get user DN!
- 2021-09-02 09:09:38 ###i#: ldap_search( $linkID, $baseDN = 'DC=internal', $filter = '(objectClass=*)', $attributes = [ 'dn' ], $attrsonly = , $sizelimit = , $timelimit = , $deref = );
- i#####################: # returns Resource id #795
- #########################: ldap_get_entries( $linkID, $resultID );
- i########################: # returns: array (
- 'count' => 0,
- ) Prabhu7778 (talk) 09:25, 2 September 2021 (UTC)
- Hi @Osnard could you please help me in this Prabhu7778 (talk) 10:49, 2 September 2021 (UTC)
Bear in mind that this is the wrong place to post general support questions.
If you need help with MediaWiki, use one of these channels instead:
- For technical questions related to non-Wikimedia MediaWiki installations, use the Support desk
- Alternatively, you can use the mailing list
Further options for contacting appropriate people can be found at Communication.