• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

windows authentication in asp.net?

Hi,
I am trying to create a web app with a windows authentication using asp.net
I will have to use the security group to control users' role.
Here is my problem.
our windows login used tobe  3 letters last + 1 letter of first name + 1 letter of middle name + 1 digit if same middle name.

The admin folks changed the login name convention a few months ago.
Now they give 1 letter + 6 digits

The older login names also got these new login.

They can either use new or old login name if they have older login id.
The problem I am seeing is that I can login onto the system using the old user id.
However when I add myself to the security group on the active directly.
It gets added in using the digits id.
It converts automatically to the digit id.

So I check the userid in asp.net from the system I will get the older loginid but I try to compare that to the security group, it doesn't recognize it.

How do I get around this?
EX) Smith, John P
old login: smijp,
new: x123456
0
dkim18
Asked:
dkim18
  • 3
  • 2
1 Solution
 
spprivateCommented:
I dont see any other way unless you standardize.Tell all the users to use the new id if they want to use the application.Really I mean it ,rather than looking for a solution for a problem created by company process.
I can talk about many solutions like a mapping table and all such things,but doesnt seems worth doing it
0
 
spprivateCommented:
An alternate way is to do a query to get some other detail and do a reverse look up.
That is do a directory search for the logged in user,get his details like first name last name or email and reverse map it to new user name.Easier said than done but here is one article

http://stackoverflow.com/questions/637486/how-to-get-the-current-users-active-directory-details-in-c
0
 
dkim18Author Commented:
Thanks.

I find it odd but I guess it works out OK for system folks.

You can use either login ids but when it gets added to the active directory, it converts to the digit login id.

I dont know how it gets done in windows & active directory.

0
 
spprivateCommented:
So when you do an active directory search giving the old login id what do you get back as a result
0
 
dkim18Author Commented:
Let me try to say this correctly.

The security group contains new login ids.
When you add a user to the security group, it gets converted to the new digit login ids.

New hires use this digit login ids to logon to their workstations.
But A lot of prior users still use the older login id.
For example, my login id will be smithjp but when I look at the security group, you don't see smithjp, instead you will see x123456 which is my digit login id.

The admin folks are letting both login ids to be used.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now