Unable to use ActiveDirectory

klaus.guetter's Avatar

klaus.guetter

08 Mar, 2013 03:36 PM

Hello,

It tried to set up a LDAP catalog using our AD, but cannot get it to work.

The configuration is:
ServerAddress: the IP address of our domain controller
Server Port: 389
Bind Login: CN=Mercurial,OU=SBSUsers,OU=Users,OU=MyBusiness,DC=it-gmbh,DC=de
BindPassword: XXXX
Base Container: OU=Users,OU=MyBusiness,DC=it-gmbh,DC=de
LDAP Authentication: Enabled

When trying to log into hglab as a domain user, I get following error below.

Any idea what is wrong or how I can diagnose the problem?

Klaus


[DirectoryServicesCOMException (0x8007203b): Ein lokaler Fehler ist aufgetreten. ] System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail) +420085 System.DirectoryServices.DirectoryEntry.Bind() +36 System.DirectoryServices.DirectoryEntry.get_SchemaEntry() +33 System.DirectoryServices.AccountManagement.ADStoreCtx.IsContainer(DirectoryEntry de) +54 System.DirectoryServices.AccountManagement.ADStoreCtx..ctor(DirectoryEntry ctxBase, Boolean ownCtxBase, String username, String password, ContextOptions options) +116 System.DirectoryServices.AccountManagement.PrincipalContext.CreateContextFromDirectoryEntry(DirectoryEntry entry) +144 System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInit() +256

[PrincipalOperationException: Ein lokaler Fehler ist aufgetreten. ] System.DirectoryServices.AccountManagement.PrincipalContext.DoLDAPDirectoryInit() +324 System.DirectoryServices.AccountManagement.PrincipalContext.DoDomainInit() +48 System.DirectoryServices.AccountManagement.PrincipalContext.Initialize() +124 System.DirectoryServices.AccountManagement.PrincipalContext.get_QueryCtx() +31 System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithTypeHelper(PrincipalContext context, Type principalType, Nullable'1 identityType, String identityValue, DateTime refDate) +14 System.DirectoryServices.AccountManagement.Principal.FindByIdentityWithType(PrincipalContext context, Type principalType, String identityValue) +73 System.DirectoryServices.AccountManagement.UserPrincipal.FindByIdentity(PrincipalContext context, String identityValue) +25 HgLab.Core.Framework.Security.LdapAuthenticationModule.Authenticate(String login, String password, AuthenticationSettings authenticationSettings) in d:\Projects\hglab\src\HgLab.Core\Framework\Security\LdapAuthenticationModule.cs:103 HgLab.Core.ApplicationServices.Impl.MembershipManagerService.Signin(String login, String password) in d:\Projects\hglab\src\HgLab.Core\ApplicationServices\Impl\MembershipManagerService.cs:41 HgLab.Areas.Sitefront.Controllers.SessionController.Signin(SigninModel model) in d:\Projects\hglab\src\HgLab\Areas\Sitefront\Controllers\SessionController.cs:35 lambda_method(Closure , ControllerBase , Object[] ) +108 System.Web.Mvc.ActionMethodDispatcher.Execute(ControllerBase controller, Object[] parameters) +17

-- snip --

  1. 1 Posted by klaus.guetter on 08 Mar, 2013 04:23 PM

    klaus.guetter's Avatar

    I'm one step further. If I just enter the user name instead of the distinguished name (as the hint text says) in the Bind Login field, the LDAP catalog works at least for some users [for other uses, I get an exception"while trying to retrieve the authorization groups, an error (5) occurred" - there are quite some google hits for this error message].
    So for now, you may close this (and perhaps improve the Bind Login int text).

    Klaus

  2. Support Staff 2 Posted by Anton Gogolev on 21 Mar, 2013 07:25 AM

    Anton Gogolev's Avatar

    Klaus,

    Sorry for the delayed reaction on my part.

    How are things going with AD integration?

  3. Anton Gogolev closed this discussion on 22 Aug, 2013 07:58 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

03 Aug, 2022 01:49 PM
05 Jul, 2022 07:01 PM
28 Mar, 2022 04:42 PM
21 Jan, 2022 10:43 AM
20 Jan, 2022 10:45 AM

 

18 Jan, 2022 10:15 AM
19 Mar, 2021 06:13 PM
01 Mar, 2021 02:51 PM
01 Jan, 2021 02:19 AM
28 Aug, 2020 08:34 AM
23 Jun, 2020 08:29 AM