I have very limited knowledge on LDAP and its configuration and but I have been trying to figure out one issue that takes place when I am running the program that is written in php, but so far its unsuccessful.
The server, I am working on is ldap server, which is running on Apache. After testing a program (i.e.ldap://localhost:10389/) locally successfully the same was hosted on the web server (Linux Apache server). while running the same program via http ://abc.net:2020/conn.php, it stopped at the "$ldapconn = ldap_connect($host, $port)" and not proceeding to the next line (showstopper), and at the same time not showing any error message too, therefore, I am unable to find out where the issue is actually taking place.
The program I wrote on php is :
Help needed to solve this issue.
Thanks in advance.
Last edited by GomathiUoM; 09-27-2017 at 12:41 AM..
Firstly I have to say I'm no PHP expert (to put it mildly), but I suspect this isn't actually a PHP problem.
The first thing I'd recommend is trying to do a bit of extra debugging in your code. From some Googling for this kind of problem, it seems you can enable verbose debugging output in your script by adding a line like this near the top:
This should cause the script to display a lot more information about what the LDAP functions are doing, or not doing. I suspect you'll have to have the printing of errors and warnings enabled in your php.ini to actually see that output, though I could be wrong.
If I were to guess myself what's going on, I'd say it's most likely a network connectivity or SSL handshaking issue. So the main thing is to check to see if you can actually connect over standard LDAP to the IP in your script, since as things stand you're attempting a plaintext, non-SSL connection on port 389.
From the Bash prompt, are you able to telnet to the host specified in your script on the same port you're using (i.e. does telnet 1.1.11.111 389 actually work) ? Or on a more advanced but even more useful note, if you have ldap-utils installed you could see what happens if you try ldapsearch -d 1 -H ldap://1.1.11.111.
It could be that your LDAP server is running on a port other than 389 or needs you to use LDAPS rather than plain LDAP. Anyway, hopefully some of the above will give you some pointers in the right direction.
Hi..
I have very limited knowledge on LDAP and its configuration and but I have been trying to figure out one issue that takes place when I am running the program that is written in php, but so far its unsuccessful.
The server, I am working on is ldap server, which is running on Apache. After... (1 Reply)
Hi ,
I am getting an error while installing on a new hp-ux 11.31 server for the first time.
I have troubleshooted to some extent and installed the C compiler which it was asking for and now a new error has arised.
please find the below error,
Any help would be appreciated.
$ make
Making all... (1 Reply)
HI guys,
I've come to this great community with a problem that everything that I could find is related to a bug, in the ldap code in the apache but nothing else.
My problem happens after installing the Apache from HP software depo, it installs sucessfully and everything, but when I setup a... (0 Replies)
Hi Gurus
I am a newbie in Apache.
I want to configure Apache Web server(A for reference) to receive all requests on Port-843 to be redirected to another Apache web server(B) and access a crossdomain.xml(located in /var/www/html) file there.
I have put the following entries in... (0 Replies)
Hello,
I have a Solaris 10 and it looks like it was installed with apache. I see some files in:
Since I'd like to use CSWapache2 from OpenCSW I'd like to remove the one from SUN but I don't know which package name it has.
Do you know how can I remove it ?
Thanks
R.F
---------- Post... (4 Replies)
Hi,
I have web server (apache) installed in server-1 and i want to view the web pages from diferent servers also while the web server is running only in one server ....(all the servers are connected to office LAN)
right now all the servers have apache running......and CPU utilzation is at its... (2 Replies)
Hi,
I have been trying to configure apache web server for coldfusion mx7 on solaris 5.8 using the command:
./wsconfig -server coldfusion -ws apache -dir /usr/local/apache/conf -bin /usr/local/apache/bin/httpd -script /usr/local/apache/bin/apachectl -coldfusion
Then it prompted me:
Apache... (1 Reply)
Hi - Maybe not the right forum for this but I will ask anyway..
I recently installed apache on my ultra 10 - solaris 9...
Working okay - and I have some docs in my htdocs directory that I can access through a web browser..
Now I want to get a bit fancy and change the home page so I can... (2 Replies)