[Samba] Query a Windows 2003 AD server for specific information

Rondall Stewart rstewart at iccpartners.com
Mon Nov 26 18:11:05 GMT 2007


The Question:  What command do I use to query a Windows 2003 AD server to return the Organizational Unit of a specific users? Also, what would be the command that would return the “Home Directory” path as specified in the Account Properties of the Windows 2003 account?

The Environment: Windows 2003 Domain with 10000 plus users
8000 Windows 2k/XP workstations
1100 Terminal Clients connecting to SuSE Linux Enterprise Server 10
Authentication between Linux and Windows using Samba Version 3.0.24-2.28-1354-SUSE-CODE10
Winbind Version 3.0.24-2.28-1354-SUSE-CODE10

All users have a “home directory”  located on a Windows server.  The path is set in their AD account and  mapped to H: When they login to a XP or 2000 workstation.  This is setup in a school district.  Users can be either logged into windows or into Linux.   

The path to the home directory is ODD at best.  I didn't set it up, nor can I change it.

For teachers they are mapped to \\server\teachers\”username”
For students it is a little more complicated.  Each school has it own OU.  Therefor, the Windows admins created a path that is similar to this \\server\”OUname”\”username”  The problem is there are 10000 students divided between 30 OUs.

Thanks in advance.





More information about the samba mailing list