Questions tagged [ldap-query]

A type of transaction performed against an LDAP database

This is a type of transaction that is performed against an Lightweight Directory Access Protocol (LDAP) database. Usually in the form of a Select, Insert, Update, or Delete.

644 questions
0
votes
1 answer

LDAP filter boolean expression maximum number of arguments

I was writing a small test case to see what's more efficient, multiple small queries or a single big query, when I encountered this limitation. The query looks like this: (| (clientid=1) (clientid=2) (clientid=3) ...) When the number of clients…
Dan Manastireanu
  • 1,802
  • 1
  • 15
  • 18
0
votes
1 answer

How to query for dn in Active Directory below non-leaf user object when the child object has no attributes?

Basically, what I'm trying to accomplish is deleting a non-leaf user object from MS Active Directory. At some point in time, a few additional objects were put underneath these non-leaf user objects, so I am trying to query for all these objects…
robbie
  • 658
  • 3
  • 11
  • 26
-1
votes
1 answer

ldap search_filter escape specific charter

I retrieve members of a group and their sAMAccountName (NT Accounts) I run the following code takes from: ldap3 python search members of a group and retrieve their sAMAcountName (Active Directory) I'm getting user name as output but after few…
shlco
  • 1
  • 2
-1
votes
1 answer

LDAP search filter string and base DN syntax combination to get user with matching `sAMAccountName` when base DN's lowest elements are just Group CNs?

Is there a way to write an LDAP search filter string or base DN syntax to get user with matching sAMAccountName property when the target base DN's lowest elements are Group CNs (not actually users/Person objects)? Never worked with LDAP querying…
lampShadesDrifter
  • 3,925
  • 8
  • 40
  • 102
-1
votes
1 answer

LDAP Query in Python3

I have an LDAP Query which is running perfectly fine in my terminal ldapsearch -h ldap.mygreatcompany.com -D user@mygreatcompany.COM -w "$ldappassword" -b "DC=abc,DC=mygreatcompany,DC=com" -s sub "(mail=user1@mygreatcompany.COM)" sAMAccountName I…
-1
votes
1 answer

Export all old Entries of ldif Files from server with ldaptool and reimport them

I tried to export all Entries that be already imported with ldaptools and i used this .\ldapsearch.exe -x -c -h example -D "uid=admin,ou=system" -w secret -b "example" > output_file.ldif But i did not get the same order especially some Entries…
Majd
  • 1
-1
votes
1 answer

LDAP query doesn't work when there is space in the OU

There are about 20 OU in AD. 6 of the OU has space in it. for example, "Department Heads", "Operation Managers". The following works all 15 OU where there are no space but doesn't work when there is a space in the OU description. Any idea. I tried…
Green Code
  • 189
  • 3
  • 14
-1
votes
1 answer

Query to LDAP from VBA / Excel

Our company has a directory of employees where Employee ID and E-mail address are stored. I would like to create a VBA in Excel that will search for a particular person's e-mail address if Employee ID is given. Our IT department has given me a line…
Mikhail K
  • 21
  • 1
  • 4
-1
votes
1 answer

SEARCHING FOR A LIST OF USERS LOGIN TIME IN LDAP CONTAINER

I have been trying to get a login time stamp of some users on my ldap container but it seems difficult at the moment i can only generate for a single user while attempting to use more than a single user isn't returning anything for me but error. i…
Nazehs
  • 478
  • 1
  • 10
  • 19
-1
votes
2 answers

LDAP query to get account name from SID

So I have a SID of a FSP: S-1-5-21-2127521184-1604012920-1887927527-72713. Translation worked in powershell but I would like to do the ldap query by myself, like here but have a little trouble with proper SID conversion. Could you help me with…
user3529850
  • 1,632
  • 5
  • 32
  • 51
-1
votes
1 answer

Configure PeoplePicker to hide users with specifc custom attribute

SharePoint On Prem. 2013. Currently the people picker is configured to see users in DomainA, DomainB and DomainC. That was OK, but now users in DomainA have been added to DomainC as part of an integration activity. The people picker now shows…
-1
votes
2 answers

How to query ldap to obtain user information as ldap objects not as a String

I find it strange that on querying ldap, it returns the information in LDIF form(hopefully am right about this inference) which is fine, but the information is returned as String object instead of a (some) ldap object (like user, name or group etc).…
samshers
  • 1
  • 6
  • 37
  • 84
-1
votes
1 answer

LDAP userSearchFilter By group

I trying to reconfigure the ldap authentication for Active Directory as I found the current version of search filter are too long. The example of current version of search filter that…
Yong Cai
  • 143
  • 1
  • 17
-1
votes
1 answer

Cannot create new computer in ADSI Edit on an AD LDS instance

Using ADSI Edit I cannot use the interface and create a new computer. Background So I installed Active Directory Lightweight Directory Services (AD LDS) on my Windows 8.1 Pro computer. Then I followed the tutorial to create an AD LDS instance and…
S Meaden
  • 8,050
  • 3
  • 34
  • 65
-1
votes
1 answer

Is it normal for an LDAP extract to have multiple OUs for a single record?

I have an LDAP extract with records that are in the format: CN=, OU=, OU=, OU=, and so on with up to 8 OUs! Some also have two CNs...
Sam109
  • 9
  • 3
1 2 3
42
43