Questions tagged [userprincipal]

Encapsulates and exposes some principals or constructors of the active directory userprincipal class.

Encapsulates and exposes some principals or constructors of the active directory userprincipal class.

Link: UserPrincipal Methods

170 questions
0
votes
1 answer

If a user has not authenticated himself to a web module in Java EE, what will EJBContext#getCallerPrincipal() return?

For a Servlet to get the Principal of a web user, he will call HttpServletRequest#getUserPrincipal(). According to the docs, this method will return null if the user has not authenticated himself. Makes sense. If an enterprise java bean (EJB) want…
Martin Andersson
  • 18,072
  • 9
  • 87
  • 115
0
votes
1 answer

"The specified directory service attribute or value already exists" error when updating Active Directory thumbnail

I'm tring to programatically update various AD properties from a c# webservice. I can update phone / office / title etc no problem, but when I try to update the ThumbnailPhoto I get the error: The specified directory service attribute or value…
Ben
  • 4,281
  • 8
  • 62
  • 103
0
votes
1 answer

Adding an AD User to a Machine Local group via AccountManagement

I wanted to implement adding an AD user to a local machine group via User and GroupPrincipals, and I thought it would work nice and easy. Unfortunately, I continue to get a General Access Denied error. It's possible I just don't understand the…
J_D
  • 308
  • 3
  • 16
0
votes
3 answers

Changing AD User Account Property by using the UserPrincipal

I am trying to change the User Account Property in Active Directory by using the UserPrincipal. I have read that we have to use the special account which has the write access to the Active Directory rather than the current log on user. So, I…
TTCG
  • 8,805
  • 31
  • 93
  • 141
-1
votes
1 answer

How to get “Company” and “Office” from Active Directory given a UserPrincipal object?

How to get “Company” and “Office” from Active Directory given a UserPrincipal object?
Anuj
  • 1
1 2 3
11
12