Active Directory
-
Hi I am new to active directory. I have an application in c# and want to use active directory login dialogbox in the application. I saw lots of code everywhere. Want to know how the login screen will popup. Is it automatic if you call code below? DirectoryEntry userEntry = new DirectoryEntry(users.Path, LDAPUser, LDAPPassword); ADUserDetail userInfo = ADUserDetail.GetUser(userEntry); userlist.Add(userInfo); } directorySearch.Filter = "(&(objectClass=group)(SAMAccountName=" +fName + "*))"; SearchResultCollection results = directorySearch.FindAll(); Thanks in advance, Sai
-
Hi I am new to active directory. I have an application in c# and want to use active directory login dialogbox in the application. I saw lots of code everywhere. Want to know how the login screen will popup. Is it automatic if you call code below? DirectoryEntry userEntry = new DirectoryEntry(users.Path, LDAPUser, LDAPPassword); ADUserDetail userInfo = ADUserDetail.GetUser(userEntry); userlist.Add(userInfo); } directorySearch.Filter = "(&(objectClass=group)(SAMAccountName=" +fName + "*))"; SearchResultCollection results = directorySearch.FindAll(); Thanks in advance, Sai
The code you have would be used to validate the entry a user has made in a login dialog, but you still have to show the login dialog before you can call this code.
I wasn't, now I am, then I won't be anymore.
-
The code you have would be used to validate the entry a user has made in a login dialog, but you still have to show the login dialog before you can call this code.
I wasn't, now I am, then I won't be anymore.
-
There isn't one by default. You have to create it. (at least that is the case in Windows.Forms) If you are using WPF, I'm not entirely sure if there is a prebuilt component you can use.
I wasn't, now I am, then I won't be anymore.
-
There isn't one by default. You have to create it. (at least that is the case in Windows.Forms) If you are using WPF, I'm not entirely sure if there is a prebuilt component you can use.
I wasn't, now I am, then I won't be anymore.
-
There isn't one by default. You have to create it. (at least that is the case in Windows.Forms) If you are using WPF, I'm not entirely sure if there is a prebuilt component you can use.
I wasn't, now I am, then I won't be anymore.
-
Thanks, So I have to create a login form using buttons and textboxes and then use the active directory code to verify the user? Thanks, Sai
correct.
I wasn't, now I am, then I won't be anymore.
-
How can I use WPF? I heard the name before. What is Active Directory Common Dialog and DirectoryObjectpickerDialog? Thanks, Sai
Those won't be what you want. If your application isn't already WPF you can't just use it. You would have to create a new project in WPF then. Since you are using WinForms, you'll have to create a login dialog from scratch.
I wasn't, now I am, then I won't be anymore.
-
correct.
I wasn't, now I am, then I won't be anymore.