M
M
Mr. Abdu Jan2014-03-06 09:58:07
PHP
Mr. Abdu Jan, 2014-03-06 09:58:07

How to display usernames and surnames via LDAP?

Hello,
There is such a problem. Through PHP, you need to display the last name and first name of the user from the computer they logged in through Active Directory.
There is a corporate website (local intranet). The log needs the data of users who are logged into the system.
I found an example on the net pro-ldap.ru/art/levintsa/20120406 The
following error is displayed:
Warning: ldap_search(): Search: Operations error in D:\www\1.php on line 74
The request returned nothing, group branch DN: ou=Groups,dc=mycompany,dc=local

Any example?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
script88, 2014-03-06
@script88

'groupsDN' => 'ou=Groups,dc=mycompany,dc=ru',
'usersDN' => 'ou=Users,dc=mycompany,dc=ru' Do the
values ​​of dc and ou match your values ​​in AD ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question