Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
DB Engine
SQL ServerMSDESQL Server CE
Services
Analysis (Data Mining)Analysis (OLAP)DTSIntegration ServicesNotification ServicesReporting Services
Programming
CLRConnectivitySQLXML
Other Technologies
ClusteringEnglish QueryFull-Text SearchReplicationService Broker
General
Data WarehousingPerformanceSecuritySetupSQL Server ToolsOther SQL Server Topics
DirectoryUser Groups
Related Topics
MS AccessOther DB ProductsMS Server Products.NET DevelopmentVB DevelopmentJava DevelopmentMore Topics ...

SQL Server Forum / General / Security / November 2006

Tip: Looking for answers? Try searching our database.

Searching AD group members from a SQL stored procedure

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roberto Souza - 29 Nov 2006 13:32 GMT
Hi. We are creating a new app in wich we need to know if the user is member
of at least one of as list of AD groups. The user network login name is
provided to one stored procedure then it needs to query the AD to verify if
the string containing the user name is member of a list of its groups.
How can we make it? We searched for sp_'s and xp_'s but didn't find anyone
that could return this information.

Thanks in advance,

Roberto de Souza Santos.
Uri Dimant - 29 Nov 2006 13:38 GMT
Hi
Take a look at IS_MEMBER function in the BOL

> Hi. We are creating a new app in wich we need to know if the user is
> member of at least one of as list of AD groups. The user network login
[quoted text clipped - 7 lines]
>
> Roberto de Souza Santos.
Roberto Souza - 29 Nov 2006 14:12 GMT
The is_member function relates to the current user, I need to query for a
user name that is different from the current one.

Roberto.

> Hi
> Take a look at IS_MEMBER function in the BOL
[quoted text clipped - 10 lines]
>>
>> Roberto de Souza Santos.
jebuskrust@gmail.com - 30 Nov 2006 22:31 GMT
Setting up a sql server provider to connect to your ldap server and
using openquery to query it within a stored procedure is your friend.
Querying OU, samaccountname, name is your friend to get this
information is your friend. My advice though is to store the catalog in
a table within the database and using that table instead to make
query's to prevent your ldap server from getting soo much load.

Let me know if you need a more extensive reply :)

Good luck to ya

On Nov 29, 9:12 am, "Roberto Souza" <robertossan...@hotmail.com>
wrote:
> The is_member function relates to the current user, I need to query for a
> user name that is different from the current one.
[quoted text clipped - 15 lines]
>
> >> Roberto de Souza Santos.- Hide quoted text -- Show quoted text -
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.