anonīms Posted January 11, 2013 Report Share Posted January 11, 2013 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? Quote Link to comment Share on other sites More sharing options...
anonīms Posted January 11, 2013 Author Report Share Posted January 11, 2013 mēģināju arī šādi: $base_dn = "dc={$server}"; arī bez panākumiem. Galvenais, ka neizmet erroru, bet vnk get_entries atgriež 0 Quote Link to comment Share on other sites More sharing options...
Pats Toms Posted January 11, 2013 Report Share Posted January 11, 2013 dn gadījumā nav kaut kāds LDAP kverijs un konekcijai nevajag izmantot šo? Quote Link to comment Share on other sites More sharing options...
F3llony Posted January 11, 2013 Report Share Posted January 11, 2013 BaseDN nav nekāda sakara ar tava servera atrašanās vietu, BaseDN norāda uz LDAP sākuma direktoriju aktīvajai konekcijai. Quote Link to comment Share on other sites More sharing options...
anonīms Posted January 11, 2013 Author Report Share Posted January 11, 2013 Tom, connect jau tas ir pirms tam. Okey F3llony, paldies par atbildi. Vēl viens jautājums itkā par to pašu tēmu, bet varbūt nē. mmc filtrs. Vai tur ir iespējams tikai ievadīt ldap kveriju vai arī iegūt jau no filtra? cik skatos, tad atrodu tikai, ka var ievadīt. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.