I have two servers that support my application (in testing). Both are in the same domain, named SPL1...
By rladva
Is there anyway of accesing the session that are alocated to the users when they log in on your sit...
By tedskonto
GuysIf you are receiving access denied error messages one thing to check out if you really are stuck...
By gsuttie2002
The security chapters of SAMS [ASP.NET Unleashed] talks of converting a string into a Byte arrayFunc...
By icelava
I have a smart client and ASP.NET application that need to share user information and roles. I want...
By ieg
Hello everyone!How do you implement something like this:a user has to give their email and password ...
By asafb
Help me pleaseI'm just cerate usercontrol and place in loginviev on master page and have found error...
By guybcool
Hi,1. I have some pages which can be accessed by both admin and user and some of which can be access...
By mvpdotnet, 1 Comments
Hello,I have developed a Asp.Net 2.0 Single sign on(SSO) application it used as a single point of a...
By bainzey, 1 Comments
I have developed a blog application by myself, it is use ASP.NET 2.0.It has a problem about authenti...
By madwww1, 3 Comments
I'm using the CreateUserWizard to create my ASP.NET Membership database records and I've als...
By msaspnetdeveloper, 2 Comments
Hi!My problem is quiet simple, but a solution seems to be difficult(forme):I've a group of user...
By peter_kornills, 5 Comments
I am using panels and placeholders on one single page to be able to load other user controls into th...
By ssustar52, 1 Comments
Hi,I build a project using AJAX.NET, it run well on my local, but when I deploy to my server, I got ...
By auingo, 3 Comments
I've created my own Membership Provider by extending System.Web.Security.MembershipProvider.I'd like...
By raterus, 2 Comments
Are you using a built in membership provider?
/kadji
kadjiokou | Sun, 06 Jan 2008 06:02:00 GMT |
No, im using membership with active directory and with windows authentication. I will use a custom UserProfileInfos.
When i save a security role (in my web application) with the current user, i have to split the identity username and only get the real username but its not working since i have duplicated userProfiles because i still have the domaine name which i dont wont to have in my web app.
thank you for your time
beaulieu | Sun, 06 Jan 2008 06:03:00 GMT |
If you are using the ActiveDirectoryMembershipProvider, the you can add theattributeMapUsernam="sAMAccountName" to your provider definition in web.config.
This seems to work for me.
Thanks
/kadji
kadjiokou | Sun, 06 Jan 2008 06:04:00 GMT |
I have that attribute yes, but im still having this format saved in the user profile and roles like this... "domaineName\Username"
as i said, im trying to work with the username only when it saved in the DataBase.
thanks for your help.
beaulieu | Sun, 06 Jan 2008 06:05:00 GMT |
Can you post your web configuration file?
Thanks
/Kadji
kadjiokou | Sun, 06 Jan 2008 06:06:00 GMT |
Here my web.config.
beaulieu | Sun, 06 Jan 2008 06:07:00 GMT |