User talk:Prabhu7778

About this board

The supplied credentials are not associated with any user on this wiki.

5
Prabhu7778 (talkcontribs)

@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 (talkcontribs)

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 (talkcontribs)

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 (talkcontribs)

Hi @Osnard could you please help me in this

Clump (talkcontribs)
Reply to "The supplied credentials are not associated with any user on this wiki."
There are no older topics