Questions tagged [adsi]

Active Directory Services Interfaces

Microsoft's implementation of LDAP, ADSI is the protocol Windows computers use to maintain a domain relationship, including groups, Organizational Units (OU's), domain controllers, etc.

268 questions
0
votes
1 answer

sql open query on active directory with multiple where clause

I'm trying to limit the results using more than one WHERE clause like it is done in .net such as search.Filter = ("(&(objectCategory=person)(physicaldeliveryofficename=*)) but in SQL with open query on linked server I have this and works fine…
Jorge
  • 13
  • 3
0
votes
3 answers

Handling errors with ADSI

I'm working on a PowerShell script to change a local account name. Of course, the first step is to check that the account exists: $user=[ADSI]"WinNT://$server/$oldName,user" If the account exists, then no problem. But if it doesn't, then I get this…
James Brown
  • 327
  • 2
  • 11
  • 21
0
votes
1 answer

ADSI Report in PowerShell - Recursive groups

I have this code in PowerShell that looks into groups and users and creates a tab delimited txt file with the fields that I want. However it only finds half of the information. I am trying to replace another process that generates an identical…
FredoAF
  • 504
  • 2
  • 8
  • 22
0
votes
2 answers

foreach loop in DirectorySearcher.FindAll() method

I need to run a foreach loop in DirectorySearcher.FindAll() and get the displayname property. It seems like there are memory issues with that (referred link: Memory Leak when using DirectorySearcher.FindAll()). My code is as follows: List
Shanky
  • 331
  • 1
  • 4
  • 17
0
votes
1 answer

Microsoft SDK in android NDK

I want to include Microsoft SDK (ADSI development) files in android. I need to use #include"activeds.h" in .cpp file in my android app. How to include third party lib and header files in android ndk?
Anu
  • 177
  • 1
  • 1
  • 12
0
votes
1 answer

With ADSI SetPassword method how a password is transmited to AD Server

My question is how ADSI performs SetPassword operation. According to what I have read ADSI is a COM interface and it has more capabilities than AD provides through LDAP. While you are suppose to update unicodePwd attribute of a personaccount entity…
yusuf
  • 3,596
  • 5
  • 34
  • 39
0
votes
1 answer

ADS_CHASE_REFERRALS_EXTERNAL for Powershell

I converted a VBScript to a Powershell instead. This is one of my many problems that I encountered: Method invocation failed because [ADODB.CommandClass] doesn't contain a method named 'Properties'. Code Below: $objConnection = new-Object …
Sid
  • 765
  • 5
  • 29
  • 57
0
votes
1 answer

Find Users E-Mail via SID using VBScript and Active Directory

I am parsing log messages about changes to user accounts on a windows system. I want to notify the user about the changes so I need to retrieve their personal information (First,Last, E-Mail) from Active Directory. I already found a way to retrieve…
er4z0r
  • 4,711
  • 8
  • 42
  • 62
0
votes
1 answer

Does Azure AD Graph API also provide a data source against which you may authenticate?

I fail to understand much of the literature that comes from Microsoft these days. Could someone please answer this basic question for me? Does Azure ADSI also provide a back-end/directory/data-source against which authentication can be made? Or does…
Water Cooler v2
  • 32,724
  • 54
  • 166
  • 336
0
votes
1 answer

2 line Active Directory call fails for offshore contractors using VPN to connect to our company network

we have offshore contractors that are tryingt o run an app that performs the following Active Directory call, shown below in VB.NET Dim objRootDSE As New DirectoryEntry("LDAP://RootDSE") Return "GC://" &…
Chad
  • 23,658
  • 51
  • 191
  • 321
0
votes
0 answers

Active Directory query from SQL Server 2012 trigger failing

I have an OpenQuery call to Active Directory that gets the email address for a given Windows Domain account name. It works fine until I put it in an Insert trigger. The offending piece of T-SQL is: set @sql = 'select mail from openquery(ADSI, ''' …
tr3v
  • 431
  • 1
  • 9
  • 19
0
votes
2 answers

ADSI Indirect Group Membership

I am trying to create a method that accepts a list of Active Directory security groups and returns a boolean response for whether or not the user is a member (either direct or indirect). I am using Adaxes (which basically extends ADSI with some of…
Mike
  • 1,718
  • 3
  • 30
  • 58
0
votes
3 answers

How to use LINQ in C# to query windows local user accounts

I wanted to query windows local user accounts from C# using ADSI. Since WinNt provider is used, Directory SEarcher is not supported. I am doing the following : DirectoryEntries entries = hostMachineDirectory.Children; var users = from DirectoryEntry…
cmm user
  • 2,426
  • 7
  • 34
  • 48
0
votes
1 answer

ASP using GetObject to invoke ADSI methods

I have a classic ASP site running under a domain account application pool context, which is using windows-auth for the front end user validation. The code is able to query AD via LDAP and ADSI just fine, however when trying to obtain an object…
Skatterbrainz
  • 1,077
  • 5
  • 23
  • 31
0
votes
2 answers

Storing domain administrator password to use in ASP

I'm creating an ASP application to allow users to change their active directory password over an SSL connection. I finally got all this working but the method I'm using to get it done requires the domain admin password as shown below. Set objIADS =…
Tom
  • 4,467
  • 17
  • 59
  • 91