I use LDAP on IBM i to check credentials in my applications.

You must set the *LDAP_OPT_PROTOCOL_VERSION* option to 3 with

*ldap_set_option* ( resource $link_identifier , *LDAP_OPT_PROTOCOL_VERSION*
, 3 );



Atentament / Kind Regards

Àlex Corretgé


Carrer Major, 6
17142 - Verges
Tel: +34 972 780 422
Cell: +34 669 86 92 64

Serveis Informàtics Corretgé.com

- http://corretge.cat/
- skype: corretge_com
- LinkedIn: http://www.linkedin.com/in/corretge
- News: http://bloc.corretge.cat




2012/1/19 Pete Helgren <pete@xxxxxxxxxx>

This one has me scratching my head a little.

I installed osTicket on i so a customer of mine can enter support
tickets that I can manage for them. One of the options is to use LDAP
for authentication and the web site shows some simple hacks to get it to
work. Cool. So I hacked the files and still can't authenticate. So, I
decided just to create a simple script that will just verify that I am
hitting the AD server. Still nothing. Not even an error. So here is
the code I used just to kick the tires and see if I can hit the AD:

<?php

// LDAP variables
$ldaphost = "xxxxxxxxxxxx"; // your ldap servers
$ldapport = 389; // your ldap server's port number

// Connecting to LDAP
$ldapconn = ldap_connect($ldaphost, $ldapport)
or die("Could not connect to $ldaphost");

?>

So when I run this script, I get nothing. Blank page. No errors. Even
though the host name is xxxxxxxxxx (and yes, that is the actual
character value I passed as host - all x's). Any one using LDAP in a
PHP app on i? Any pointers? And, why don't I see any errors? php.ini
has display_errors = On and error_reporting = E_ALL

--
Pete Helgren
Value Added Software, Inc
www.petesworkshop.com
GIAC Secure Software Programmer-Java

--
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list
To post a message email: WEB400@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/web400
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/web400.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.