Questions tagged [ldapconnection]

The LdapConnection class creates a TCP/IP or UDP LDAP connection to Microsoft Active Directory Domain Services or an LDAP server.

105 questions
0
votes
1 answer

phpLDAP filter dn & uid

I have the following code: if($_POST){ $ldap['user'] = $_POST['user']; $ldap['pass'] = $_POST['pass']; $ldap['conn'] = ldap_connect('my_ip') or die("Could not connect to {'my_ip'}" ); ldap_set_option($ldap['conn'], LDAP_OPT_PROTOCOL_VERSION,…
Peter Noble
  • 675
  • 10
  • 21
0
votes
2 answers

Does a LDAP Connection which successfully "connects" but fails to "bind", requires to be disconnected?

I am creating a LDAP Connection using ldap connect function. Then I authenticate the user with username and password using bind. I want to ask if the bind fails then, does the Connection is terminated or I need to disconnect it explicitly using…
0xF1
  • 6,046
  • 2
  • 27
  • 50
0
votes
2 answers

Authenticate using LDAP

I have an ssh access to a LDAP server. After accessing through ssh I can access to phpldapadmin. I have an admin DN and a password. What needs to be done is I have to authenticate users using ldap whenever they try to login to a website. Website…
Asiri Liyana Arachchi
  • 2,663
  • 5
  • 24
  • 43
0
votes
1 answer

Cannot list all LDAP attributes using C#

I am trying to get a list of all attributes for a given LDAP entry, with the following code: LdapConnection conn = GetOpenLdapConnection(); string filter = "(uid=" + user + ")"; SearchRequest search = new SearchRequest(LDAP_BASE, filter,…
Jonathan Apodaca
  • 5,458
  • 6
  • 30
  • 41
0
votes
0 answers

ldap last login command

I have LDAP server (on solaris) and UNIX application server that connected to it. I would like to find out, how to check when the first and last time that the users were login to the UNIX application server. I prefer solution from ldap side and not…
Asaf S
  • 53
  • 1
  • 4
0
votes
1 answer

PHP: Connecting to an external LDAP system over SSL

I need to connect my application to an external LDAP system. I've managed to connect my application to a local OpenLDAP. But when I try to connect the external one over SSL I get some troubles. My code: public static function…
Michaël
  • 1,120
  • 1
  • 15
  • 30
0
votes
1 answer

nJupiter change ADService Connectionstring @ runtime

We are developing a website that will need to point to different LDAP Providers (ADService ConnectionString) when a user attempts to login. Our approach will be to look at their login name example@domain.com and use a mapping file (perhaps a…
Warren LaFrance
  • 552
  • 7
  • 20
0
votes
0 answers

Different behaviors between openldap and active directory rootbinddn

We have a Java based application which communicates/relies on PAM for its authentication needs. Users can be from local (shadow) or external (directory servers). The java application is run as non-root user (say, juser) In LDAP configuration, the…
Rammie
  • 1
  • 1
0
votes
1 answer

Identify source of LDAP (slapd) traffic appearing from localhost

We have an slapd server that has started generating many err=49 lines in /var/log/ldap for a particular service acc. err=49 is logged when the bind has failed. Through searching for the connections I can see that the source is localhost. I have…
0
votes
1 answer

Error 0x80005000 with LdapConnection and LDAPS

Before I start, I've already visited Unknown Error (0x80005000) with LDAPS Connection and changed my code and while it did solve the problem it seems that it has mysteriously come back. Here's the good stuff: public static bool Authenticate(string…
Karell Ste-Marie
  • 1,022
  • 1
  • 10
  • 22
0
votes
3 answers

PHP ldap bind issue

I've been looking at a couple of guides (and the PHP manual) trying to validate AD users on an intranet site I'm about to make. This is the first time I've used ldap_connect, and I haven't had the best of luck. Could anyone look at my code and see…
Josh J
  • 78
  • 1
  • 6
0
votes
2 answers

Setting LDAP SecurityPrincipal value

I am able to run following search query successfully on openldap commandline tool: ldapsearch -h 1.11.1.1 -b "DC=ff2,DC=in" -s subtree -D "CN=Ldap Bind,OU=Service Accounts,OU=BA,DC=ff2,DC=in" -w G00Pass# sBAAccountName=testAccount Now I have to…
Himanshu Yadav
  • 13,315
  • 46
  • 162
  • 291
-1
votes
3 answers

Warning: ldap_bind(): Unable to bind to server: Invalid credentials PHP and LDAP

I'm trying to connect to an LDAP server to authenticate user credentials. I've found a few users with this same issue but their solutions did not work for me. here's what I'm using:
user1154725
  • 7
  • 1
  • 1
  • 3
-1
votes
1 answer

Reading objectSID from ActiveDirectory - problem when reading from BuildIn-Groups

I need to use the LdapConnection classes in my project because DirectoryEntry/DirectorySearcher do not support ignoring of self signed certificates for LDAPS - as I migrated my code I run into an issue when reading the objectGuid from BuiltIn-Groups…
Oliver M.
  • 79
  • 6
-1
votes
1 answer

Add and retrieve Audio file using LDAP protocol

I want to know the details about how to add and retrieve an audio file using the LDAP protocol? Is it possible? If, then how does it work? Can anyone help me please providing the details?
N.I
  • 31
  • 6
1 2 3 4 5 6
7