<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Pozdravljeni!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Zanima me, ce kdo mogoce ve, zakaj mi php ne izpise
userPassword pri zaganjanju naslednje skripte. Sicer mi izpise ostale vrednosti.
Ce pogledam uporabnika npr. z Ldap Administrator 3.1 mi izpise
userPassword. Kot vse kaze geslo ni inkriptirano.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><html><BR><body><BR><?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>$ds=ldap_connect("localhost");<BR>if ($ds)
{ <BR>
$r=ldap_bind($ds,"cn=admin,dc=uni-lj,dc=si",
"pw");<BR> echo $r .
"<br>";<BR> }<BR>$dn =
"dc=fer,dc=uni-lj,dc=si";<BR>$filter =
"(|(cn=*)(userPassword=*)(sn=*))";<BR>$samoovo = array ( "cn", "userPassword" ,
"sn");<BR>$rpr = ldap_search($ds,$dn,$filter,$samoovo);<BR>$info =
ldap_get_entries ($ds,$rpr);<BR>//echo $info["count"] . "<br>";<BR>echo
$info[1]["cn"][0] . "<br>";<BR><STRONG>echo $info[1]["userPassword"][0] .
"<br>";<BR></STRONG>echo $info[1]["sn"][0] . "<br>";</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>echo $info[2]["cn"][0];</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>?></FONT><FONT face=Arial
size=2><BR></body><BR></html></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Dodan je bil z ldapadd Sheme so pravilno dodane. V
file je bilo napisano:</FONT></DIV>
<DIV><FONT face=Arial
size=2>_______________________________________________________________________<BR>dn:
<A
href="mailto:cn=uporabnik01@fe.uni-lj.si,dc=fer,dc=uni-lj,dc=si">cn=uporabnik01@fe.uni-lj.si,dc=fer,dc=uni-lj,dc=si</A><BR>objectClass:
siEduPerson<BR>objectClass: person<BR>objectClass:
inetOrgPerson<BR>siEduPersonEMSO: 123<BR>siEduPersonPrimaryAffiliation:
Staff<BR>siEduPersonAffiliation: Staff<BR>cn: <A
href="mailto:uporabnik01@fe.uni-lj.si">uporabnik01@fe.uni-lj.si</A><BR>givenName:
uporabnik01<BR>sn: uporabnik<BR>siEduPersonPrincipalName: <A
href="mailto:uporabnik@fe.uni-lj.si">uporabnik@fe.uni-lj.si</A><BR>userPassword:
secret</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>M.</FONT></DIV></BODY></HTML>