Re: Active Directory SQL integration

From: tw-Nashville (twNashville_at_discussions.microsoft.com)
Date: 12/20/04


Date: Mon, 20 Dec 2004 13:09:05 -0800

Thanks, Steve, for responding to my post. I looked through the KB article
carefully, and followed several links that were listed. Unfortunately, I
don't think any of them will be of great help. Using sp_help_revlogin only
gives back the current name in sysxlogins, which is the old AD account name,
when I want to get the new one. I thought that perhaps if I ran the script,
the old IDs would throw an error and pop out. So I grabbed one that I knew
to be outdated, and ran the sp_grantlogin. It did not throw an error,
presumably because there is already a user in sysxlogins with that name.

So the basic problem remains: 1) identifying the affected users, and 2)
updating their information in sysxlogins to use the new AD account name,
while preserving any objects that are owned by the user.

Thank you,
tw

"Steve Thompson" wrote:

> Have you seen:
>
> http://support.microsoft.com/default.aspx?scid=kb;en-us;246133
>
> I believe you could use the stored procedure to migrate the "old" AD
> accounts to the new ones. In concept refreshing AD accounts is similar to
> migrating databases between servers.
>
> Steve
>
>
> "tw-Nashville" <twNashville@discussions.microsoft.com> wrote in message
> news:C9CD31C7-83AE-4CE6-814C-0C62ADE6B1DE@microsoft.com...
> > Our infrastructure group is changing all account names in Active
> Directory.
> > For purposes of example in this post, an account named MyDomain\oldAccount
> > would change to MyDomain\newAccount. However, in SQL Server's
> > master..sysxlogins table, the name column continues to contain their old
> AD
> > login (MyDomain\oldAccount). The user, by using MyDomain\newAccount,
> will
> > continue to be able to login to SQL Server, because his/her SID has not
> > changed. If the user has rights to be able to create objects, he/she can
> > create new objects, but they will have the old account
> (MyDomain\oldAccount)
> > name on them in the database.
> >
> > My problem is this. As users come and go, I need to be able to determine
> > whether a SQL Server user is valid. More importantly, we remove any
> objects
> > those old users created, as they are no longer needed. Also, if a user
> > calls with access problems, I need to be able to reliably identify how
> they
> > get to SQL Server.
> >
> > Once the account has been changed, AD will no longer recognize
> > MyDomain\oldAccount, so they look like invalid users if I try to find
> them.
> >
> > So here are the bottom-line questions:
> > 1. How do I use the SID in SQL Server to find an account in AD?
> > 2. How do I change the name on the sysxlogins table and all sysusers
> tables
> > in the various databases to which the user has access?
> >
> > Thank you in advance for your assistance,
> >
> > tw
>
>
>



Relevant Pages

  • Re: Joining tables from two databases
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... account with rights to both tables. ... to create a connection I need to use a connection ... Are these 2 databases are SQL Server? ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Databases connections not working more with all web sites
    ... First check for permission problems. ... account for one of the sites with a problem to an account with administrator ... > Databases connections, both, for MS SQL Server 2000 and MS Access ...
    (microsoft.public.inetserver.asp.db)
  • Re: Joining tables from two databases
    ... This posting is provided "AS IS" with no warranties, and confers no rights. ... Hitchhiker's Guide to Visual Studio and SQL Server ... I'm not really following how you are solving it using a service account. ... Are these 2 databases are SQL Server? ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: public role???
    ... The guest user account cannot be removed from ... > databases, but not ... then that's the way SQL Server ...
    (microsoft.public.sqlserver.security)
  • Re: images blocked
    ... I had SP1 and even V2.2 but still had the similar issue after a hard install. ... "Steve Cochran" wrote in message ... If you go to the Control Panel | User Accounts, you should see an ASP.NET account that was created. ... wonder if there's some underlying security settings in that .NET Framework ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)