windows authentication in

Posted on 2009-04-15
Last Modified: 2012-05-06
I am trying to create a web app with a windows authentication using
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 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
Question by:dkim18
    LVL 15

    Accepted Solution

    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
    LVL 15

    Expert Comment

    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

    Author Comment


    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.

    LVL 15

    Expert Comment

    So when you do an active directory search giving the old login id what do you get back as a result

    Author Comment

    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.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    A Change in PHP Behavior with Session Write Short Circuit ( (Winter 2014)** With the release of PHP 5.6 the session handler changed in a way that many think should be considered a bug.  See the note …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    This video teaches viewers how to create their own website using cPanel and Wordpress. Tutorial walks users through how to set up their own domain name from tools like Domain Registrar, Hosting Account, and Wordpress. More specifically, the order in…
    Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    12 Experts available now in Live!

    Get 1:1 Help Now