Skip to content

Where i put setting for ou and uid when start connection? #310

Answered by stevebauman
samsul96maarif asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @samsul96maarif,

Paste this into your .env file, and you'll be good to go:

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());

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@samsul96maarif
Comment options

@stevebauman
Comment options

@samsul96maarif
Comment options

Answer selected by samsul96maarif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants