Welcome to Sign in | Help
in Search

interogare useri din Active Directory

Last post 08-16-2007, 5:14 PM by Alex. 6 replies.
Sort Posts: Previous Next
  •  08-15-2007, 10:19 AM 2481

    interogare useri din Active Directory

    salut

    am inteles ca din SQL se pot interoga userii din Active Directory....stie cineva mai multe despre lucrul asta....cum se face....exista vreo functie

    alex.

  •  08-15-2007, 10:31 AM 2482 in reply to 2481

    Re: interogare useri din Active Directory

    Trebuie sa folosesti furnizorul de date OLE DB (OLE DB Data Provider) "OLE DB Provider for Microsoft Directory Services" !

     

    Citeste aici: http://msdn2.microsoft.com/en-us/library/ms190803.aspx

  •  08-15-2007, 2:29 PM 2483 in reply to 2482

    Re: interogare useri din Active Directory

    nu ma descurc....ma tot chinui de ceva vreme....nu inteleg exact ce si cum terbuie facut

    daca ai vreodata ceva timp liber sa imi zici te rog pas cum pas ce si cum ar trebui facut ar fi super...intre timp ma mai chinui.

    multumesc mult.

    alex.

  •  08-15-2007, 2:38 PM 2484 in reply to 2483

    Re: interogare useri din Active Directory

    Mosule am eu o scula mica facut in dot net pt asa ceva cauta-ma pe mess sau vezi pe itboard ca am postat sursa
    Secolul XXI ori va fi religios ori nu va fi deloc
  •  08-15-2007, 2:46 PM 2485 in reply to 2483

    Re: interogare useri din Active Directory

    Incearca aici: SQL Server: how to link different data sources together

    Poate te ajuta asta: 

    "Link Microsoft SQL Server to a directory

    You can link SQL Server to a directory like Active Directory or Active Directory Application Mode. Create a linked server in the Enterprise Manager and give it a descriptive name like "Active Directory Link". Choose the option "Other data source" and select the data provider "OLE DB Provider for Microsoft Directory Services". As product name enter "Active Directory Services" and as data source enter "adsdatasource". When you expand the new linked server you will find two available items - Tables and Views. So SQL Server allows you to view any tables or views in this data source. But the data provider "OLE DB Provider for Microsoft Directory Services" does not provide either the tables or views. Therefore you will get the error "Error 7301: Could not obtain a required interface from OLEDB provider ADsDSOObject". You can safely ignore the error message. You will be able to query the data store through the SQL query language.

    It is important that you run the services "MSSQLSERVER" under an account which has access to the directory. If you run the services under the local system account you will get the following error when you try to query the data store:

    Server: Msg 7321, Level 16, State 2, Line 1
    An error occurred while preparing a query for
    execution against OLE DB provider 'ADsDSOObject'.
    OLE DB error trace [OLE/DB Provider 'ADsDSOObject'
    CommandPrepare::Prepare returned 0x80040e14].

    So if the directory runs on your local machine and the local user "DirectoryUser" has access to it then you need to run the "MSSQLSERVER" service under this account. If the directory is running somewhere in your domain and the domain user "DomainUser" has access to it then you need to run the "MSSQLSERVER" service under this domain account." 

  •  08-15-2007, 4:21 PM 2486 in reply to 2485

    Re: interogare useri din Active Directory

    problerma e ca activ e dir nu e un flat database e o baza de date ldap si tb sa folosesti ldap queryes pt a o interoga nush daca poti face asta din vreun cleint de mssql,in afara de faptukl ca tb sa cunosti ldap sintax
    Secolul XXI ori va fi religios ori nu va fi deloc
  •  08-16-2007, 5:14 PM 2498 in reply to 2486

    Re: interogare useri din Active Directory

    f buna aplicatie.....ma ajuta mult....

    mersi mult

    alex.

View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems