473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

PHP and LDAPS

Not sure if this is the right group for this message but anyhelp or
pointers to the right group would be great.

I am trying to write a script that authenticates a user with AD from a
website running apache. I have apache installed with ldap support as
well as openssl and PHP. At the moment i can connect and authenticate a
user fine when i just connect to the DC on the normal unsecured port of
386. When i try to change it to port 636 for SSL it can no longer bind?

The webserver and DC are running on different servers. When i connect
using ldp.exe on the DC with SSL it will connect and bind fine. The
same happens on the webserver.

This has obviously got me a little confused and so any ideas would be
great. I capture the packets using ethereal when the site trys to bind
to LDAP using SSL and i get.
================================================== ===================
No. Time Source Destination
Protocol Info
15 2.573579 192.168.1.191 192.168.1.69 TLS
Alert (Level: Fatal, Description: Unknown CA)

Frame 15 (61 bytes on wire, 61 bytes captured)
Ethernet II, Src: Shuttle_b5:4e:5a (00:30:1b:b5:4e:5a), Dst:
DellComp_15:49:85 (00:08:74:15:49:85)
Internet Protocol, Src: 192.168.1.191 (192.168.1.191), Dst:
192.168.1.69 (192.168.1.69)
Transmission Control Protocol, Src Port: 1353 (1353), Dst Port: ldaps
(636), Seq: 149, Ack: 4646, Len: 7
Secure Socket Layer
TLS Record Layer: Alert (Level: Fatal, Description: Unknown CA)
Content Type: Alert (21)
Version: TLS 1.0 (0x0301)
Length: 2
Alert Message
Level: Fatal (2)
Description: Unknown CA (48)
================================================== ===================
This is being sent from the machine running the webserver and where the
request came from to the DC.

When you first go to the site it asks you to accept the certificate
which it does fine.

Thanks in advance for any help

Jan 19 '06 #1
0 2572

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Florian Racky | last post by:
Hi, I'm trying to get secure authentication with Novell EDirectory running. PHP Version is 4.3.1 compiled with ldap and openssl. I copied the Novell root-certificate into the OpenSSL...
0
by: Antoine Jacoutot | last post by:
Hi :) I was wondering if that was a way to use ldap_connect to connect to an ldap server using unix socket (ie. /var/run/ldapi). Right now I can only connect via ldap/ldaps. Thanks in...
0
by: anguo | last post by:
hi, everyone. i use mysql server version: 3.23.33. when i insert one line in a table, it can insert normaly. but then it display : null discard 9/udp sink null systat ...
1
by: Nico | last post by:
Hello, I have problems while authenticate a user with the LDAP. I think its because of the SSL connection the server need to verify the users but I don't know how to establish a ssl connection....
2
by: yawnmoth | last post by:
When I try to use the ldap_search() function on an LDAP server and I've connected to, I get the following error message: Warning: ldap_search(): Search: Confidentiality required in...
1
by: Steve JORDI | last post by:
Hi, it seems to me that I have a problem using an LDAPS connection to our server for identification purposes (using OpenLDAP and OpenSSL). Using PHP 4.4.4 I have the following code which...
0
by: =?Utf-8?B?Um9jaw==?= | last post by:
Does Microsoft ADSI provider support LDAP with SSL for querying Sun Directory Server using ASP Code running on IIS 6.0? I was successfull in querying LDAP for Sun One Directory Server with...
0
by: sallas | last post by:
I am trying to connect to a Active Directory on a Windows server from either a Debian machine or a Windows XP machine using Python. So far I can connect using the following: import sys import...
1
by: parthap | last post by:
Hi, I have a class which i am using to create user in the MS Active Directory. Previously the code was running fine and I can query the AD and also can create the user. Now I want to submit my...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.