BlueTurtle005
New Member
I'm a total newbie to thisTrying to connect to an ldap server with \[code\]PrincipalContext\[/code\]. I have tried all solutions on this site to no avail. Things I've tried:\[code\]PrincipalContext insPrincipalContext = new PrincipalContext(ContextType.Domain);PrincipalContext insPrincipalContext = new PrincipalContext(ContextType.Domain, "ldap://localhost:389/dc=maxcrc,dc=com");PrincipalContext insPrincipalContext = new PrincipalContext(ContextType.Domain, "maxcrc.com");\[/code\]All give the same result: \[quote\] LDAP server not available\[/quote\]Only \[code\]ContextType.Machine\[/code\] works basically.Not sure if my LDAP server is set up correctly:
- Host: localhost
- Port: 389
- Base DN: dc=maxcrc,dc=com
- URL: ldap://localhost:389/dc=maxcrc,dc=com