简体   繁体   中英

ASP Net - Forms Authentication with Active Directory Problem

I have an error...

The container specified in the connection string does not exist

Basically, I am using Active Directory authentication in ASP.NET.

I have set up my connection string.

I am still very new to AD.

I appritate any help thanks

You'll probably be better off specifying the root NC name in your connection.

LDAP://YourADServer/DC=cene,DC=edc,DC=CompName,DC=com

Unless there is a good reason why you don't want searches to be done domain-wide, I'd set it up like that.

You can try ldp.exe to connect to the AD server you have specified in the path and see if that works

One thing you might want to be aware of is that Active Directory and Forms Authentication are not the same thing. You will use one or the other to Authenticate and Authorize.

我认为您的LDAP字符串应这样格式化:

"LDAP://DCServer.BUSINESSPLUSPLUS.com/CN=Users,DC=BUSINESSPLUSPLUS,DC=com"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM