Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Username to long #60

Open
Davka opened this issue Apr 30, 2024 · 1 comment
Open

Username to long #60

Davka opened this issue Apr 30, 2024 · 1 comment

Comments

@Davka
Copy link

Davka commented Apr 30, 2024

Bildschirmfoto 2024-04-30 um 11 37 34

@Ariansdf
Copy link
Collaborator

hey @Davka,
after receiving the entries it's exploded by commas to extract the user info:
`
// get entries from the ldap
$info = ldap_get_entries($ldapConn, $sr);

// Extract initials from user's display name
$name = $info[0]["displayname"][0];
$parts = explode(", ", $name);
$initials = substr($parts[1], 0, 1) . substr($parts[0], 0, 1);`

in your case the email address equals the username here, is it possible for you to echo $info?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants