How to connect without domain?
See original GitHub issueHello!
Thank you for your library. My code:
using (var conn = new LdapConnection())
{
conn.Connect("192.168.55.111", 389);
conn.Bind("balkarov@some.office", "password");
}
This is work. But could I check password without domain? For example
conn.Bind("balkarov", "password");
PS: in c I can use ContextType.Domain
I try this
conn.Bind("CN=balkarov,OU=Company,DC=Some,DC=Office", "password");
but this does not work
Issue Analytics
- State:
- Created 6 years ago
- Comments:26 (3 by maintainers)
Top Results From Across the Web
How to Login with a Local Account instead of Domain ...
How to login local account without typing the computer name? · In the username field, enter .\. The domain below will disappear, and...
Read more >Remote Desktop connection without domain name
Use the computername of the remote system, e.g., CLOUDHOSTEDVM\Administrator . When you use .\ (or no prefix) via RDP, it assumes the ...
Read more >connect without join, domain - Server Essentials
Connect computers to a Windows Server Essentials server without joining the domain · Right click the Start Menu and choose Command Prompt (Admin)...
Read more >Enter Username without domain from a windows 7 ...
Enter Username without domain from a windows 7 domain joined PC ... of which are used to map a drive (using connect using...
Read more >Access share on non-domain Windows 10 PC using ...
I'm a remote worker and I have two Windows 10 laptops. Both laptops are connected wirelessly to the same router at home. I...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@balkarov Sorry to show up late to the party. Years of dealing with LDAP for AAA in various apps leads me to confirm what @OskarKlintrot has suggested. The most commonly used method I’ve seen across a wide variety of LDAP-enabled cross-platform apps is to use a service account to do the initial bind, search for the user (either by samAccountName or mail attribute), then use the password provided at login to attempt another bind to LDAP with the login form password and the “found” user DN. Exception/error handling at this stage is always the “fun” part.
Hope it helps to at least know you aren’t alone, this is how we’ve done it for ages in other frameworks that aren’t so tightly windows integrated. I never expected to be doing it in .NET to talk to AD! 😃
@OskarKlintrot I found my problem. CN - is not username. CN - is name and surname.
Now (temperary) we have created via search filter by your suggestion. We created root user which username has domain (looks like username@domain.com)
This is temporary solution. If I found another method I will tell you. Thanks guys