I thought I’d find more about this topic but I didn’t.
I have to write a java application that checks which ou a specific user is part of.
But to authenticate with the server I can’t ask for username and password and also can’t store it in the source (or some other file).
Is there a way with JNDI and Java to authenticate with the user who is currently logged in?
Since it seems that there is no real solution to this, I now go with requesting Login information at the start of the script/tool and using it when needed.