You are here: authentification on Active Directory with LDAP « PHP Programming Language « IT news, forums, messages
authentification on Active Directory with LDAP

Posted by Michael Schδffer on 01/08/07 08:01

Hello,

my english is not so good.

I want to use the users of our active directory in the intranet for a portal
page.

i dont know how to authenticate?


$server = "xxx-xx.de.xx.com";
$connectid = @ldap_connect($server);

is ok.


$binding = @ldap_bind($connectid) or die("Error");
echo "ok";

is still ok.


if i use my username an password i get Error
$binding = @ldap_bind($connectid,$username,$password) or die("Error");



i dont understand this $basedn thing, for example in the search funtion.

$search = @ldap_search($connectid,$basedn,$filter);

$basedn = "ou=User,dc=ho,dc=de";

where can i finde the values for ou= dc= an c= and so on.


Michael Schδffer

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация