Questions tagged [principal]

This tag doesn't currently have an excerpt. Help contribute by writing one

173 questions
3
votes
1 answer

ASP.NET / IIS 7 - Authenticate against an Active Directory using a Principal

My current application uses the PrincipalContext class to authenticate a default user (filled in in the Web.config dedicated section) against a LDAP (and more precisely an Active Directory): ldapContext = new PrincipalContext(AdContextType, AdHost,…
Emmanuel
  • 13,935
  • 12
  • 50
  • 72
3
votes
2 answers

Custom principal in ASP.NET MVC

I want to be able to access custom properties for an authenticated user like UserId and FirstName without querying the database each time. I found this site through a post on Stack Overflow and I like the approach - but I use IoC / repositories and…
Mayo
  • 10,544
  • 6
  • 45
  • 90
3
votes
1 answer

MockMvc and User Principal

I try to test the access of mvcControllers injecting the UserPrincipal : restPockMockMvc .perform(get("/pocs").principal(authToken)) .andReturn(); and here's the method of the controller I try to…
3
votes
0 answers

How to Update the department, manager properties in Userprincipal?

I can't fullfil the operation that update a domain accounts information like "company","manager","department"...etc. Following are my two ways 1: DirectoryEntry de = new DirectoryEntry("LDAP://"); de.InvokeSet("company", new Object[] {…
3
votes
2 answers

How to show firstname of the user in grails with shiro

i am new to grails and trying to show the firstname of the user with: "shiro:principal property="firstName" but it gives me the following error: Error executing tag 'shiro:principal': No such property: firstName for class: java.lang.String If i…
user
  • 41
  • 2
3
votes
0 answers

Spring Security which authorities? SecurityContextHolder's authentication authorities vs Principal's authorities

I'm using Spring Security to provide authentication and authorization to my webapp. I use the standard method UserDetails loadUserByUsername(String username) throws UsernameNotFoundException; to login with a DaoAuthenticationProvider. Once…
coolnodje
  • 789
  • 1
  • 7
  • 20
3
votes
1 answer

No principal in request after Apache basic authentication (basic-auth) with mod_jk

Environment Apache 2.2.13 connect to Tomcat 5.5 with mod_jk (ajp13). Apache requires basic-auth for "/" i.e. for all URLs it serves. Problem Once the request arrives at my app in Tomcat (it's a Servlet filter) request.getUserPrincipal() returns…
Marcel Stör
  • 22,695
  • 19
  • 92
  • 198
3
votes
1 answer

constant term in Matlab principal component regression (pcr) analysis

I am trying to learn principal component regression (pcr) with Matlab. I use this guide here: http://www.mathworks.fr/help/stats/examples/partial-least-squares-regression-and-principal-components-regression.html it's really good, but I just cannot…
Matlabber
  • 153
  • 1
  • 2
  • 7
3
votes
3 answers

request.getUserPrincipal() is still not null after session is invalidated

I have web application deployed on websphere application server 7.0. User logins using /j_security_check. When session timeout occures session ivnvalidates but request.getUserPrincipal() is still not null. I expect it should be null. How to clean…
Vadim
  • 71
  • 1
  • 5
2
votes
2 answers

Correct Kerberos principal type for a hostbased service

There are several types of Kerberos principals. A regular user princpal like michael-o@COMPANY.COM would be KRB_NT_PRINCIPAL. But what about a service like HTTP/host.company.com@COMPANY.COM? There are a few possible types like…
Michael-O
  • 18,123
  • 6
  • 55
  • 121
2
votes
0 answers

How and where to update RolePrincipal?

I'm using asp.net FormAuthentication and a custom role manager. I would like to add a custom Identity to the User object so I can store some custom user data in the User object and still have all the roles functionality. I'm kind of confused as to…
chobo
  • 31,561
  • 38
  • 123
  • 191
2
votes
2 answers

What "domain" should I specify in JNDI login to an Active Directory Server?

I'm wondering what "principal" I should specify to login in to an Active Directory server. Should the principal be a user inside the AD I try to log into? Or it can be a user in the domain I specify as long as the user has privileges to access the…
2
votes
1 answer

Can I access the current user in session statically in Quarkus?

I need to do access to the current user (previously set up by a ContainerRequestFilter) in a static way, to avoid the passage of the @Context SecurityContext in every method of every controller. I want to achieve something that, in Spring, I would…
ayyylmao
  • 71
  • 1
  • 13
2
votes
1 answer

Is there a way of translating the importance of each feature into the observations in PCA?

I am doing PCA with some 140 countries (observations) and 20 features. I have already run the model and it's pointing to keeping the first three components. I am confused now because I don't know if there's a way to translate those PC values into…
Guillermina
  • 3,127
  • 3
  • 15
  • 24
2
votes
1 answer

Custom principal objects vs Membership API in ASP.NET?

I'm trying to get a handle on all the various techniques of implementing custom authorization within a traditional ASP.NET application - it seems that the preferred approach is to use the Membership API by creating a custom provider model. I'm…
manning18
  • 957
  • 3
  • 8
  • 18
1 2
3
11 12