Jump to content
php.lv forumi

ldap base dn


anonīms

Recommended Posts

Esmu saskāries ar problēmu, jo nepieciešams ldap_seach norādīt $base_dn, bet es īsti nezinu, ko tur rakstīt, jo serveris ir ip, nevis kkāds domēns

                $base_dn = "dc=10,db=64,dc=99,dc=17";
                $filter = "(&(memberOf=cn={$group}))";
                //$filter = "(&(objectCategory=person)(objectClass=user)(memberOf=cn={$group},ou=ouOfGroup,dc={$host},d$
                $searchUsers = ldap_search($connection, $base_dn, $filter);
                $getUsers = ldap_get_entries($connection, $searchUsers);
                print_r($getUsers);

 

šajā gadījumā ip ir: 10.64.99.17, jeb 

$server  = '10.64.99.17';

 

 

kā īsti tad jāizskatās $base_dn'am? 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...