Re: User Authentication with Tcl
From: Cameron Laird (claird_at_lairds.us)
Date: 11/12/04
- Next message: cykhung: "Newbie question about namespace"
- Previous message: ouj: "Efficient looping"
- In reply to: Len Morgan: "User Authentication with Tcl"
- Next in thread: Jose Lopes Moreira: "Re: User Authentication with Tcl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Nov 2004 00:08:06 GMT
In article <d5fb359d.0411111349.5d2dac30@posting.google.com>,
Len Morgan <len-morgan@crcom.net> wrote:
>Does any know how I can get a username/password from a user and then
>authenticate against an MS Active Directory. I'd like my Tcl App to
>use the single sign-on feature so that a user will only need one
>password.
>
>Thanks!
There are several ways. This is one:
package require ldap
set host MS_AD_host
set handle [ldap::connect $host]
if [catch {ldap::bind $handle $user $password} error] {
puts "'$password' is not the correct password for user '$user'."
puts "The error diagnostic is '$error'."
exit 1
} else {
puts "User '$user' does indeed have the password '$password'."
}
- Next message: cykhung: "Newbie question about namespace"
- Previous message: ouj: "Efficient looping"
- In reply to: Len Morgan: "User Authentication with Tcl"
- Next in thread: Jose Lopes Moreira: "Re: User Authentication with Tcl"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|