Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Gary Prothero 14 posts 34 karma points
    Jun 03, 2015 @ 00:26
    Gary Prothero

    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" />

      <ADSettings defaultUsername="RIVERMARKCU\svc-umbraco" defaultPassword="hbt6uyAledRW">
          <clear />
          <add server="SRVDC01" domain="RIVERMARKCU" container="OU=Network Administrators,DC=rivermarkcu,DC=local"
            username=" RIVERMARKCU\svc-umbraco " password="hbt6uyAledRW" />
    Can you see anything that could help fix the problem.
    Gary Prothero
Please Sign in or register to post replies

Write your reply to: