well, yes, I know now that the register_global option should be switched off, but this web site was developped for a few years and then this recommendation wasn't known and now it's a little bit hard to modify all the code....
our LDAP server is part of an nestcape product i don't remember the name...but it's all right with this ! no bug here....
ok, i'll put the ident.php file in attachment...here below auth.php
// auth.php
<?php
print"<HTML><HEAD>";
print"<TITLE>Identification</TITLE>";
print"</HEAD>";
print"<BODY onload=document.page1.uid.focus() BGCOLOR=\"#C3DCF3\" LINK=\"#0000FF\">";
print"<SCRIPT LANGUAGE=JavaScript>
function test()
{
document.page1.method = \"POST\";
document.page1.action = \"ident.php\";
document.page1.target = \"principal\";
document.page1.submit();
window.close();
}
</SCRIPT>";
print("<FORM NAME=page1>");
print("<CENTER><INPUT TYPE=text NAME=uid VALUE=\"\"><BR>Identifiant<BR>");
print("<INPUT TYPE=password NAME=pwd VALUE=\"\"><BR>Mot de passe<BR>\n<BR>");
print("<INPUT TYPE=hidden NAME=color VALUE=\"#FFFFFF\">");
print("<CENTER><A HREF=\"javascript:test()\" onMouseOut=\"MM_swapImgRestore()\" onMouseOver=\"MM_swapImage('envoyer','','images/envoyer_in.gif',1)\"> <IMG NAME=\"envoyer\" BORDER=0 SRC=\"images/envoyer.gif\"></A>");
print("</CENTER></FORM>");
print"</BODY></HTML>";
?>
auth.php (authentication dialog box) --> ident.php (LDAP bind and registering of the session)
Denis