[pmwiki-users] permission some user accounts with ldap issue
ahmad abdulbaqi
ahmadabdo2000 at gmail.com
Tue Aug 28 23:51:49 PDT 2018
Dears,
Still I am suffering about access some users to my wiki,
I've tested by some users in the main OU "Information Technology" and users
whose members in the entire groups whose member in the main OU "Information
Technology"
some users in Main OU have access and others haven't
some users in the entire groups have access and others haven't
I don't know what is the main reason for this issue,
So, I created new users as below details:
1- nmc.com/Nahdi Wiki/testwiki
2- nmc.com/Information Technology/testwiki1
3- nmc.com/Information Technology/Wiki/testwiki2
user "testwiki" can't access ( this is OK because this user outside the OU
"Information Technology"
user "testwiki1" has been created in the main OU "Information Technology"
can access
user "testwiki2" has been created in the entire group "wiki" which member
in the main OU "Information Technology" can access also
So, with the new users" the permission is working OK
but with the old users the permission is working randomly.
then I am asking about if the Active Directory needs any update?
thank you in advance and appreciate for your support.
Regards.
في الاثنين، 13 أغسطس 2018 في 12:43 ص تمت كتابة ما يلي بواسطة ahmad
abdulbaqi <ahmadabdo2000 at gmail.com>:
> Dears
> the issue still exist
> some users can access to wiki and other can't access
>
> I use the below code in config.php
>
> # ************ LDAP Configuration ****************
> #Security Variables set login for edit & history page
> #to let anyone edit that has an ldap entry:
> $HandleAuth['diff'] = 'edit';
> # for allow editor user only for show history
> $DefaultPasswords['edit'] = 'id:*';
> $DefaultPasswords['delete'] = 'id:*';
> $DefaultPasswords['read'] = 'id:*';
> $Author = $AuthId;
>
> $AuthLDAPBindDN = "nmc\\ora100";
> #(it must be \\ not \)!!!
> $AuthLDAPBindPassword = "P at ssw0rd";
>
> $AuthUser['ldap'] = 'ldap://prjed-dc03.nmc.com/OU=Information
> Technology,dc=nmc,dc=com?mailNickname?sub';
>
> include_once("$FarmD/scripts/authuser.php");
>
> Also I use the below code in authuser.php
> list($basedn, $attr, $sub, $filter) = explode('?', $path);
> if (!$attr) $attr = 'uid';
> if (!$sub) $sub = 'one';
> if (!$filter) $filter = '(objectClass=*)';
> $binddn = @$AuthLDAPBindDN;
> $bindpw = @$AuthLDAPBindPassword;
> if (ldap_bind($ds, $binddn, $bindpw)) {
> ## Search for the appropriate uid
> $fn = ($sub == 'sub') ? 'ldap_search' : 'ldap_list';
> $sr = $fn($ds, $basedn, "(&$filter($attr=$id))", array($attr));
>
> $x = ldap_get_entries($ds, $sr);
>
> thank you in advance
> Regards.
>
> 2018-08-07 15:36 غرينتش+03:00, ahmad abdulbaqi <ahmadabdo2000 at gmail.com>:
> > Dears
> >
> > Good Afternoon
> >
> > My wiki is working well. but I've issue for access users in Active
> > Directory. I putted permission for OU "Information Technology" but some
> > user accounts in this OU can access to wiki and some others can't access,
> > this issue for users in all Groups within OU "Information Technology"
> >
> > I don't know what is the main raison for this issue.
> >
> > thank you in advance
> >
> > Regards.
> >
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20180829/95eefcca/attachment.html>
More information about the pmwiki-users
mailing list