Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F82124
simple_ldap.php
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
epriestley
Nov 15 2013, 2:12 PM
2013-11-15 14:12:27 (UTC+0)
Size
465 B
Referenced Files
None
Subscribers
None
simple_ldap.php
View Options
<?php
if
(!(
$conn
=
ldap_connect
(
'127.0.0.1'
)))
{
die
(
"ldap_connect failed!
\n
"
);
}
if
(!
ldap_set_option
(
$conn
,
LDAP_OPT_PROTOCOL_VERSION
,
3
))
{
die
(
"ldap_set_option failed!
\n
"
);
}
if
(!
ldap_bind
(
$conn
,
'sn=ldapuser,ou=People,dc=aphront,dc=com'
,
'password'
))
{
die
(
"ldap_bind failed!
\n
"
);
}
if
(!(
$results
=
ldap_search
(
$conn
,
'ou=People,dc=aphront,dc=com'
,
'sn=ldapuser'
)))
{
die
(
"ldap_search failed!
\n
"
);
}
var_dump
(
ldap_get_entries
(
$conn
,
$results
));
File Metadata
Details
Attached
Mime Type
text/plain; charset=utf-8
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/dv/mo/hzw455fdy7uy2hn4
Default Alt Text
simple_ldap.php (465 B)
Attached To
Mode
P991 simple_ldap.php
Attached
Detach File
Event Timeline
Log In to Comment