[PHP] username format when binding to Active Directory?

2005-11-21 Thread Bing Du
Hello, The following script returns 'LDAP bind failed...'. "; $ldaprdn = "[EMAIL PROTECTED]"; $ldappass = "jsmithpass"; $ds=ldap_connect("ad.dept.some.edu"); if ($ds) { echo "Binding ..."; $r=ldap_bind($ds, $ldaprdn, $ldappass); if ($r) { echo "LDAP bind successful..."; }

Re: [PHP] username and password auth

2005-02-17 Thread Richard Lynch
William Stokes wrote: > What is the best or right way to compare users name and password given in > a > web form to data in mysql database? It's kind of a Good Idea to store the password encrypted using MySQL's md5() function or other similar functions. In the old days, you'd use their password()

RE: [PHP] username and password auth

2005-02-17 Thread Jay Blanchard
[snip] What is the best or right way to compare users name and password given in a web form to data in mysql database? I saw one example where sql SELECT query was made with username and password as WHERE and the script tested how many rows was returned from database if there was 1 row returned

[PHP] username and password auth

2005-02-17 Thread William Stokes
Hello, What is the best or right way to compare users name and password given in a web form to data in mysql database? I saw one example where sql SELECT query was made with username and password as WHERE and the script tested how many rows was returned from database if there was 1 row returne

[PHP] Re: Re:[PHP] USERNAME

2001-12-06 Thread Fred
If you simply want to find out the username of someone who has logged in using apache htaccess authentication, that information is contained in the global variable $PHP_AUTH_USER Fred Chamarty Prasanna Kumar <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi R

[PHP] Re:[PHP] USERNAME

2001-12-06 Thread Rasmus Lerdorf
To use the HyperWave functions you need to download and install HyperWave, whatever it is. And your second question has nothing to do with HyperWave. Simply check $REMOTE_USER. phpinfo() would have shown you this. -Rasmus On 7 Dec 2001, Chamarty Prasanna Kumar wrote: > > > Hi Rasmas and

[PHP] Re:[PHP] USERNAME

2001-12-06 Thread Chamarty Prasanna Kumar
Hi Rasmas and All, Thanks very much for the reply, Rasmas. To use Hyperwave functions does I need to download software and install it or it will work with php intallation. Or is there any way to find the login "username" from the web page using php and that login authentic

Re: [PHP] USERNAME

2001-12-06 Thread Rasmus Lerdorf
Not that I have ever used HyperWave, but a 3 second glimpse at the manual would seem to indicate that you get a HyperWave connect by calling hw_connect(). -Rasmus On 7 Dec 2001, Chamarty Prasanna Kumar wrote: > > > Hi All, > >Want to know the usage of > > hw_getusername(int connection

[PHP] USERNAME

2001-12-06 Thread Chamarty Prasanna Kumar
Hi All, Want to know the usage of hw_getusername(int connection); function specifically, what connection refers to !! Thanks in advance, Kumar. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mai