Click here to Skip to main content
15,890,670 members
Home / Discussions / C#
   

C#

 
Generalto return or not to return something Pin
pauli17-Mar-08 4:58
pauli17-Mar-08 4:58 
GeneralRe: to return or not to return something Pin
Rob Philpott17-Mar-08 6:20
Rob Philpott17-Mar-08 6:20 
GeneralRe: to return or not to return something Pin
Simon P Stevens17-Mar-08 6:55
Simon P Stevens17-Mar-08 6:55 
GeneralRe: to return or not to return something [modified] Pin
pauli17-Mar-08 23:01
pauli17-Mar-08 23:01 
GeneralRe: to return or not to return something Pin
Simon P Stevens18-Mar-08 6:07
Simon P Stevens18-Mar-08 6:07 
Generalgeneric collection - .net 2.0 Pin
arkiboys17-Mar-08 4:22
arkiboys17-Mar-08 4:22 
GeneralRe: generic collection - .net 2.0 Pin
Luc Pattyn17-Mar-08 4:29
sitebuilderLuc Pattyn17-Mar-08 4:29 
QuestionActive Directory "login" from C# application Pin
User 137680017-Mar-08 3:52
User 137680017-Mar-08 3:52 
Hi all,
I am writing a program that needs to take a login name and password, and then try to authenticate against an AD server. Sounds simple enough so far...

The name and password may be entered by a user (real human being), however it also may be generated by another application (actually, a hardware device that my application is communicating with) that I have no real control over. This other application always generates the "account name" for Active Directory users (so, if the user is First Name = "Ben", Last Name = "de Waal", Display Name = "Ben de Waal", but login name = "bdw123", then the value that is passed is "bdw123").
Using DirectoryEntry("LDAP://" + adServer, userName, userPass, authType), it seems the userName should be "Ben de Waal" (from the above example) to be accepted - if I try "bdw123", it fails to authenticate. I was considering simply iterating through the user list and then getting the "Ben de Waal" value from the "bdw123" user, however it was pointed out to me (quite rightly) that you could have two users named "Ben de Waal", but with different account names. This would mean that the login attempt may then try the incorrect one, which would be very bad.

Can anyone point me in the right direction for checking the "account name"/password against AD rather than the "user name"/password?
GeneralResource leak (handles count) in simple .NET application Pin
Kolobock17-Mar-08 3:45
Kolobock17-Mar-08 3:45 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Luc Pattyn17-Mar-08 3:55
sitebuilderLuc Pattyn17-Mar-08 3:55 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Kolobock17-Mar-08 4:07
Kolobock17-Mar-08 4:07 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Luc Pattyn17-Mar-08 4:25
sitebuilderLuc Pattyn17-Mar-08 4:25 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Kolobock17-Mar-08 8:32
Kolobock17-Mar-08 8:32 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Luc Pattyn17-Mar-08 8:44
sitebuilderLuc Pattyn17-Mar-08 8:44 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Kolobock17-Mar-08 10:18
Kolobock17-Mar-08 10:18 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Rob Philpott17-Mar-08 4:10
Rob Philpott17-Mar-08 4:10 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Kolobock17-Mar-08 8:34
Kolobock17-Mar-08 8:34 
GeneralRe: Resource leak (handles count) in simple .NET application Pin
Kolobock17-Mar-08 23:57
Kolobock17-Mar-08 23:57 
GeneralIP Camera with C# Pin
sher1217-Mar-08 3:44
sher1217-Mar-08 3:44 
GeneralRe: IP Camera with C# Pin
Luc Pattyn17-Mar-08 3:59
sitebuilderLuc Pattyn17-Mar-08 3:59 
GeneralScreen Shot Pin
sjs4u17-Mar-08 2:18
sjs4u17-Mar-08 2:18 
GeneralRe: Screen Shot Pin
ritz123417-Mar-08 2:45
ritz123417-Mar-08 2:45 
GeneralRe: Screen Shot Pin
sjs4u17-Mar-08 2:48
sjs4u17-Mar-08 2:48 
GeneralRe: Screen Shot Pin
Christian Graus17-Mar-08 9:18
protectorChristian Graus17-Mar-08 9:18 
GeneralRe: Screen Shot Pin
Kristian Sixhøj17-Mar-08 3:58
Kristian Sixhøj17-Mar-08 3:58 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.