<div dir="rtl"><div dir="ltr">Dears, </div><div dir="ltr">Still I am suffering about access some users to my wiki,</div><div dir="ltr">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"</div><div dir="ltr">some users in Main OU have access and others haven't<br></div><div dir="ltr">some users in the entire groups have access and others haven't</div><div dir="ltr">I don't know what is the main reason for this issue, </div><div dir="ltr">So, I created new users as below details:</div><div dir="ltr"><br></div><div dir="ltr"><p class="gmail-MsoListParagraphCxSpFirst" style="margin:0in 0in 0.0001pt 0.5in;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span class="gmail-MsoHyperlink" style="color:rgb(5,99,193);text-decoration-line:underline"><span style="text-decoration-line:none">1-<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">     
</span></span></span><span dir="LTR"></span><span class="gmail-MsoHyperlink" style="color:rgb(5,99,193);text-decoration-line:underline"><a href="http://nmc.com/Nahdi">nmc.com/Nahdi</a> Wiki/testwiki</span><span class="gmail-MsoHyperlink" style="color:rgb(5,99,193);text-decoration-line:underline"></span></p>

<p class="gmail-MsoListParagraphCxSpMiddle" style="margin:0in 0in 0.0001pt 0.5in;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span class="gmail-MsoHyperlink" style="color:rgb(5,99,193);text-decoration-line:underline"><span style="text-decoration-line:none">2-<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">     
</span></span></span><span dir="LTR"></span><span class="gmail-MsoHyperlink" style="color:rgb(5,99,193);text-decoration-line:underline"><a href="http://nmc.com/Information">nmc.com/Information</a> Technology/testwiki1</span><span class="gmail-MsoHyperlink" style="color:rgb(5,99,193);text-decoration-line:underline"></span></p>

<p class="gmail-MsoListParagraphCxSpLast" style="margin:0in 0in 8pt 0.5in;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span class="gmail-MsoHyperlink" style="color:rgb(5,99,193);text-decoration-line:underline"><span style="text-decoration-line:none">3-<span style="font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:7pt;line-height:normal;font-family:"Times New Roman"">     
</span></span></span><span dir="LTR"></span><span class="gmail-MsoHyperlink" style="color:rgb(5,99,193);text-decoration-line:underline"><a href="http://nmc.com/Information">nmc.com/Information</a> Technology/Wiki/testwiki2</span></p><p class="gmail-MsoListParagraphCxSpLast" style="margin:0in 0in 8pt 0.5in;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small"><br></span></p><p class="gmail-MsoListParagraphCxSpLast" style="margin:0in 0in 8pt 0.5in;line-height:107%;font-size:11pt;font-family:Calibri,sans-serif"><span style="font-family:Arial,Helvetica,sans-serif;font-size:small">user "testwiki" can't access ( this is OK because this user outside the OU "Information Technology"</span></p>user "testwiki1" has been created in the main OU "Information Technology" can access <br>user "testwiki2" has been created in the entire group "wiki" which member in the main OU "Information Technology" can access also </div><div dir="ltr"><br></div><div dir="ltr">So, with the new users" the permission is working OK</div><div dir="ltr">but with the old users the permission is working randomly.</div><div dir="ltr"><br></div><div dir="ltr">then I am asking about if the Active Directory needs any update?</div><div dir="ltr"><br></div><div dir="ltr">thank you in advance and appreciate for your support.</div><div dir="ltr"><br></div><div dir="ltr">Regards. </div></div><br><div class="gmail_quote"><div dir="rtl">‫في الاثنين، 13 أغسطس 2018 في 12:43 ص تمت كتابة ما يلي بواسطة ‪ahmad abdulbaqi‬‏ <‪<a href="mailto:ahmadabdo2000@gmail.com">ahmadabdo2000@gmail.com</a>‬‏>:‬<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dears<br>
the issue still exist<br>
some users can access to wiki and other can't access<br>
<br>
I use the below code in config.php<br>
<br>
# ************ LDAP Configuration ****************<br>
   #Security Variables set login for edit & history page<br>
  #to let anyone edit that has an ldap entry:<br>
 $HandleAuth['diff'] = 'edit';<br>
  # for allow editor user only for show history<br>
 $DefaultPasswords['edit'] = 'id:*';<br>
 $DefaultPasswords['delete'] = 'id:*';<br>
 $DefaultPasswords['read'] = 'id:*';<br>
   $Author = $AuthId;<br>
<br>
   $AuthLDAPBindDN = "nmc\\ora100";<br>
  #(it must be \\ not \)!!!<br>
    $AuthLDAPBindPassword = "P@ssw0rd";<br>
<br>
$AuthUser['ldap'] = 'ldap://<a href="http://prjed-dc03.nmc.com/OU=Information" rel="noreferrer" target="_blank">prjed-dc03.nmc.com/OU=Information</a><br>
Technology,dc=nmc,dc=com?mailNickname?sub';<br>
<br>
include_once("$FarmD/scripts/authuser.php");<br>
<br>
Also I use the below code in authuser.php<br>
  list($basedn, $attr, $sub, $filter) = explode('?', $path);<br>
    if (!$attr) $attr = 'uid';<br>
    if (!$sub) $sub = 'one';<br>
    if (!$filter) $filter = '(objectClass=*)';<br>
    $binddn = @$AuthLDAPBindDN;<br>
    $bindpw = @$AuthLDAPBindPassword;<br>
    if (ldap_bind($ds, $binddn, $bindpw)) {<br>
      ##  Search for the appropriate uid<br>
      $fn = ($sub == 'sub') ? 'ldap_search' : 'ldap_list';<br>
      $sr = $fn($ds, $basedn, "(&$filter($attr=$id))", array($attr));   <br>
<br>
       $x = ldap_get_entries($ds, $sr);<br>
<br>
thank you in advance<br>
Regards.<br>
<br>
2018-08-07 15:36 غرينتش+03:00, ahmad abdulbaqi <<a href="mailto:ahmadabdo2000@gmail.com" target="_blank">ahmadabdo2000@gmail.com</a>>:<br>
> Dears<br>
><br>
> Good Afternoon<br>
><br>
> My wiki is working well. but I've issue for access users in Active<br>
> Directory. I putted permission for  OU "Information Technology" but some<br>
> user accounts in this OU can access to wiki and some others can't access,<br>
> this issue for users in all Groups within OU "Information Technology"<br>
><br>
> I don't know what is the main raison for this issue.<br>
><br>
> thank you in advance<br>
><br>
> Regards.<br>
><br>
</blockquote></div>