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

Is there a method to get user display name in Java? #587

Closed
ZoroYouth opened this issue Dec 26, 2017 · 4 comments
Closed

Is there a method to get user display name in Java? #587

ZoroYouth opened this issue Dec 26, 2017 · 4 comments

Comments

@ZoroYouth
Copy link

Principal principal=request.getUserPrincipal();
From principal, I can get domain and username, but I found there is no display name.

@ZoroYouth
Copy link
Author

Solved with COM4J.

@hazendaz
Copy link
Member

@ZoroYouth How did you solve this? Could you share your solution with com4j? Is it something waffle shoudl have natively in place?

@ZoroYouth
Copy link
Author

@hazendaz
Copy link
Member

thanks. Looks like we had a link to it on this page. -> https://github.com/Waffle/waffle/blob/2a23e7875d9c0f4b79987232a05b57f693bd75e0/Docs/faq/AdditionalActiveDirectoryInfo.md

It does appear that project might be no longer active but would be interesting to maybe implements the good parts again here. It looks to use JNI where this uses JNA so its at least plausible to implement something here eventually :)

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