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
-1
votes
1 answer

Shell script command "ldap_search" is not working with php exec or shell_exec command

I'm developing a code which uses ldap_search Shell Script Command for extracting user information from Active Directory using user id and by proper LDAP Server Authentication. I am getting accurate result from ldap_search script. But, whenever I…
-1
votes
1 answer

Get all userids in an active directory group using page control in an LDAP - Native api

I am new to ldap programming. My aim is to to get the list of all the user ids from a particular group in Active Directory. I am implementing this using page control as the number of user's are large. I am doing this for Active Directory using the…
Raj
  • 1,113
  • 1
  • 17
  • 34
-1
votes
1 answer

Malformed 'homePhone' attribute value

I am creating an application where I am write LDAP client which would connect to SunOne Directory Server. User an enter attributes, select type and enter value and my application will create that user on the SunOne. When user selects homePhone, type…
SimpleGuy
  • 2,764
  • 5
  • 28
  • 45
-1
votes
1 answer

LDAP restricting the limit of size

I need to filter the AD description field, such that LDAP should exclude all the records which description length is more than 500 characters. Could somebody help me to in this?
-1
votes
1 answer

LDAP ldapsearch filter: return uidNumber if person has sub ou=mail

I'm trying to construct a ldap filter for my Postfix setup which acts as the example pseudo code below: return uidNumber OF objectClass=posixAccount IF they have a ou=mail AND the mailAddress in this ou=mail IS EQUAL to test@Mydomain.TLD More…
Leander
  • 11
  • 6
-2
votes
1 answer

LDAPS - Recommendations for a read-only troubleshooting utility?

I'm trying to find a good tool for a customer service team to better qualify LDAPS issues. When a customer enters their LDAPS details into our client and it errors, I'd like the customer service team to be able to qualify the issue by reproducing…
-2
votes
1 answer

How can I find the Active Directory users who have the "Cannot Change Password" set by LDAP query?

I want to find out list of users whose account is set to "cannot change password". How can I find by LDAP query? Script is also appreciated. I just need to find out the list.
-2
votes
1 answer

LDAP modify using entryUUID

I am trying to modify an item in LDAP using entryUUID. ldapmodify --hostName localhost --port 1389 --bindDN "cn=Directory Manager" --bindPassword password <<+ dn: entryUUID=bf5e7357-90a6-4481-b464-4ed9e153fc44,dc=pm,dc=test,dc=com changetype:…
gmtek
  • 741
  • 3
  • 7
  • 25
-2
votes
1 answer

Is it possible and how get all users from LDAP using python and django?

Env: python - 3.6.6 django - 2.x.x django-auth-ldap - 2.0.0 python-ldap - 3.2.0 Code: import ldap from django_auth_ldap.backend import LDAPBackend, _LDAPUser, LDAPSearch user = _LDAPUser(LDAPBackend(), "any") # just for getting root…
Yuriy Leonov
  • 536
  • 1
  • 9
  • 33
-2
votes
1 answer

How to query only specific LDAP domains out of the ADAS forest

I have a situation where in my application queries Global Catalog over 3269 port for fetching a DN, it always expects a unique result for each user query and it throws exception if the result is more than one CN for same user (If user is part of…
-2
votes
1 answer

LDAP Query to return list of users which contain specific attributes

In this OU=Employees,OU=Users,DC=org,DC=com I have a list of CN (user1, user2, user3. Each CN (user) contains a list of attributes (isUseless, managerid, etc.) I want to obtain a list of all CN Employees, whos attribute isUseless=Yes. I've searched…
Loclat123
  • 1
  • 1
-2
votes
1 answer

Powershell LDAP Query get list of all Groups and their owners

I am lost I need to write a query to give me all the groups that a user is the owner of in a CSV format. An alternative would be a list of all groups with their username and e-mail. The CSV format should either be: "GroupName",…
China Syndrome
  • 953
  • 12
  • 24
-3
votes
1 answer

List groups that have members from a specific OU in ActiveDirectory

I have an OU called "InactiveUsers", to which I move all users that will be inactivated in my organization. And I'm trying to list all the groups in my domain, having at least one user OU (InactiveUsers) as a member. But do not know how to do,…
Wesley
  • 245
  • 6
  • 13
-4
votes
1 answer

How to get a Group DistinguishedName if only its name/CN is known using LDAP?

I have a group naming only CN=RA010-CAT-PAT-PUN , How can i get a distiguished name of this group by using LDAP , or by using System.DirectoryServices.Protocols? I have a LdapConnection, public LdapConnection GetLdapConnection() { …
sagar yadwad
  • 133
  • 1
  • 3
  • 11
1 2 3
42
43