When I run simple console app that calls UserPrincipal.GetGroups, it enumerates the users groups with no problems.However when I run the same code as t开发者_运维技巧he same user on the same server bu
I get the username of the connected user (using j_security_check) this way, through a managed bean: ......
I have seen some code for working with AD in this stackoverflow question I am getting confused about the using statement. I thought that it was just used for things that you are worried could become
I am trying to programmatically add a user like this below but get an access denied message on the Save. I\'m running locally on Windows 7 and the code resides in a console app.
Extending UserPrincipal to take advantage of its built-in properties... running into an issue when we overload the FindByIdentity() method.
Has somebody an idea, why the getName() method of the UserPrincipal sometimes provides an empty String? Most of the time it re开发者_如何学运维turns the correct user name but not every time.
I\'m calling playSoundFromBundle from the code below to play sounds (aif files).I have a sound that does a single click and then a fading sound.Both sounds are in the same file.Sometimes I get two cli