Where i put setting for ou and uid when start connection? #310
Answered
by
stevebauman
samsul96maarif
asked this question in
Q&A
-
i dunno where to put setting for "ou" and "uid" for connect, i always getting invalid credential, but when i try use native php, my code just run as expected,
|
Beta Was this translation helpful? Give feedback.
Answered by
stevebauman
Jun 24, 2021
Replies: 1 comment 3 replies
-
Hi @samsul96maarif, Paste this into your LDAP_LOGGING=true
LDAP_CONNECTION=default
LDAP_HOST=mail.organze.com
LDAP_USERNAME="uid=dev-home,ou=people,dc=organze,dc=com"
LDAP_PASSWORD="sfjsj234234234!@#@!#"
LDAP_PORT=389
LDAP_BASE_DN="dc=organze,dc=com"
LDAP_TIMEOUT=5
LDAP_SSL=false
LDAP_TLS=false Then test it out by running the below command: php artisan ldap:test And then attempt browsing your directory using the below command: php artisan ldap:browse You can also try testing it programmatically by pasting this in your routes/web.php` file: use LdapRecord\Models\Entry;
dd(Entry::get()); |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
samsul96maarif
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @samsul96maarif,
Paste this into your
.env
file, and you'll be good to go:Then test it out by running the below command:
And then attempt browsing your directory using the below command:
You can also try testing it programmatically by pasting this in your routes/web.php` file: