The LdapConnection class creates a TCP/IP or UDP LDAP connection to Microsoft Active Directory Domain Services or an LDAP server.
Questions tagged [ldapconnection]
105 questions
1
vote
1 answer
How is possible to specify multiple servers for LDAPConnection using Unboundid SDK?
I want to specify multiple servers for LDAPConnection like configuration of LDAP URL for Apache:
http://httpd.apache.org/docs/2.2/mod/mod_authnz_ldap.html#authldapurl:
ldap://host1 host2 host3:port/basedn?attribute?scope?filter.
What is the…

Michael
- 10,063
- 18
- 65
- 104
1
vote
1 answer
Fetch group of LDAP in liferay
I need to make a Liferay-hook, when the user logins, check in LDAP for the group.
If the group is "users" do nothing especial, but if don't have any LDAP group I need to redirect to other page inside the Liferay portal.
I know how to do the…

colymore
- 11,776
- 13
- 48
- 90
1
vote
1 answer
Authenticate weblogic security realm user against LDAP fails
I have installed weblogic '10.3.4.0' and created a domain business and created a user businessuser in the default security realm myrealm. The authenticator is a DefaultAuthenticator as in weblogic. Now, I want to authenticate the user in my…

user1877246
- 449
- 1
- 6
- 9
1
vote
1 answer
Error when add use to ldap [LDAP: error code 17 - javaSerializedData: attribute type undefined]
I use this code snippets to add user to ldap
**public DirContext getLDAPDirContext() throws NamingException {
final Hashtable envValues = new Hashtable();
// Assign the JNDI environment values in Map
…

Lasith Malinga
- 125
- 1
- 4
- 11
0
votes
1 answer
LDAP -samba problems with setup
``I am done with setting up phpldapadmin , creating OU , CN , ... different users
and i can login the ldap users from different computer
Currently I am working on ldap-samba and using this…

blazetango
- 61
- 1
- 9
0
votes
2 answers
PHP ldap_connect() problems
I am trying to get ldap_connect to work properly. It will work fine via CLI, but not when I open my php file via browser.
Here is what I believe are the relevant details:
Error message: Fatal error: Call to undefined function ldap_connect() in…
user890443
0
votes
0 answers
How do I configure slapd so that users can bind with their username instead of their DN?
I've set up slapd and created some basic Users and Groups.
In my code (.NET 7.0), I'm able to bind to the slapd LDAP server with a user named test as follows:
string userDN = "cn=test,ou=DepartmentOne,dc=example,dc=com", userPassword = "test";
var…
0
votes
0 answers
C# PrincipalServerDownException not execute the handler that I implemented
I've implemented the PrincipalServerDownException handler, but it seems like the program does not execute the handler.
public void GetData(String domain) {
try
{
PrincipalContext ctx = new PrincipalContext(ContextType.Domain,…

David Sinaga
- 1
- 1
0
votes
0 answers
LDAP connection to a Windows Server with WindowsForm automatically
I'm actualy developping a WindowsForm application, and i'd like my application download a csv file on a SFTP server.
So, when i logged-in with Windows form login, that's work : Something like this
But, i don't want a user can authenticate, and i'd…

Dusk
- 11
- 2
0
votes
1 answer
Django Ldap Connection Setup
I am trying to setup a LDAP connection in Django. Does anyone have any sample code? I need to know what information I need to place inside of the settings.py.
I keep getting the following error message:
AUTH_LDAP_USER_SEARCH must be an LDAPSearch…

James
- 9,694
- 5
- 32
- 38
0
votes
1 answer
LDAP Query Java Exception in thread "main" java.lang.NullPointerException
i have a problem with the code:
import java.util.Hashtable;
import javax.naming.Context;
import javax.naming.NamingEnumeration;
import javax.naming.NamingException;
import javax.naming.directory.DirContext;
import…

Enes D
- 5
- 2
0
votes
1 answer
how to re-enable anonymous login in openldap
I have recently installed openldap 2.4.42 and disabled anonymous login using the following content in ldif file.
dn: cn=config
changetype: modify
add: olcDisallows
olcDisallows: bind_anon
dn: cn=config
changetype: modify
add:…

Phani Dadi
- 623
- 4
- 11
0
votes
1 answer
Unable to authenticate with LdapConnection C# on IIS 7
I am trying to authenticate using active directory and C#. The code is working on IIS Express under Visual Studio 15 but when I deploy my project to an IIS server, the LDAP connection returns the following error :
"The Supplied Credential is…

Eran Abir
- 1,077
- 5
- 19
- 34
0
votes
2 answers
Invalid credentials on ldap-bind with password having ü
I'm performing a bind to a ldap-server using the class LdapConnection. In case of a "normal" password it works fine. But if the user has a password including ü, ä or ö the server returns an error INVALID CREDENTIALS. I assumed an encoding issue but…

xforfun
- 592
- 6
- 19
0
votes
2 answers
ldap_connect() function in php accepts any value and doesnt throw an error
I am writing a php code to connect to my LDAP server.
$adServer = $ini['ldap'];
$ldap = ldap_connect($adServer) or die("Could not connect to {$adServer}");
The Value for $adServer I am fetching from a configuration file.
Looks like ldap_connect()…

Yogesh Jillanda
- 23
- 1
- 6