I am trying to use your package, however, I am getting very inconsistance results. The system admin created an entry for the active directory that looks like this:
at System.DirectoryServices.AccountManagement.PrincipalContext.CreateContextFromDirectoryEntry(DirectoryEntry entry)
at System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInit()
He is very certain the user and password is correct and it was working at one point. Only after we added the container for the staff did there become a problem.
Cannot login to active directory
I am trying to use your package, however, I am getting very inconsistance results. The system admin created an entry for the active directory that looks like this:
ADSettings in web.config: server=SRVDC01, domain=RIVERMARKCU, container=OU=Network Administrators,DC=rivermarkcu,DC=local, user= RIVERMARKCU\svc-umbraco , password=hbt6uyAledRW
When we try to login we get an error:
Exception: The user name or password is incorrect.
Inner: System.DirectoryServices.DirectoryServicesCOMException (0x8007052E): The user name or password is incorrect.
at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
at System.DirectoryServices.DirectoryEntry.Bind()
at System.DirectoryServices.DirectoryEntry.get_SchemaEntry()
at System.DirectoryServices.AccountManagement.ADStoreCtx.IsContainer(DirectoryEntry de)
at System.DirectoryServices.AccountManagement.ADStoreCtx..ctor(DirectoryEntry ctxBase, Boolean ownCtxBase, String username, String password, ContextOptions options)
at System.DirectoryServices.AccountManagement.PrincipalContext.CreateContextFromDirectoryEntry(DirectoryEntry entry)
at System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInit()
He is very certain the user and password is correct and it was working at one point. Only after we added the container for the staff did there become a problem.
Web coifig:
<section name="ADSettings" type="LDL.Web.Security.ActiveDirectory.ADSettingsConfigSection, LDL.Web.Security.ActiveDirectory, Version=1.1.4804.20887, Culture=neutral, PublicKeyToken=null" allowLocation="true" allowDefinition="Everywhere" allowExeDefinition="MachineToApplication" overrideModeDefault="Allow" restartOnExternalChanges="true" requirePermission="true" />
is working on a reply...