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

Trying to run LDAP query from Linux command line

I want to run an LDAP query from a command line on a linux system. (CentOS 5.8) i.e., I want to run the following query to look up a user's DN: (&(objectCategory=Person)(objectClass=user)(sAMAccountName=username)) How can I run this LDAP query from…
chumley
  • 173
  • 2
  • 4
  • 7
0
votes
1 answer

ADAM user's password reset with c#

I am trying to reset user passowrd in ADAM. For that I am using Accountmanagement namesapce what i tried : PrincipalContext rootPrincipalContext; LdapConnection objLdapconnection; rootPrincipalContext = new…
AnandSonake
  • 567
  • 1
  • 8
  • 19
0
votes
1 answer

LDAP filter not returning appropriate number of entries

In PHP, my filter: (&(objectClass=*)(memberOf=CN=MyGroup,...)) This returns 3 entries. In AD Explorer, it returns 8 entries - which is correct. Why would it work properly in AD Explorer, but not in PHP?
TechFanDan
  • 3,329
  • 6
  • 46
  • 89
0
votes
1 answer

Getting deleted users by lastknownparent in windows active directory using c#

I am trying to retrieve all the deleted users those are deleted from a particular OU. I am using the below query and it works fine. string query = string.Format("(&(objectclass=user)(isdeleted=true)(lastknownparent={0}))", ouDn); When "ouDn" is the…
Albert
  • 43
  • 6
0
votes
3 answers

OpanLdap password policies

I have installed the openldap version 2.4.23 on windows xp and using the apache DS as a client.I can authenticate users on a client server I set up for testing. My next step is to turn on a password policy. This is where things have gotten a bit…
Deepak Patil
  • 285
  • 7
  • 23
0
votes
1 answer

ldap search filter query to extract user group information

Currently in my deployment, I only want to extract user-group information as part of search query. As of now I am doing top level search, this results in downloading complete LDAP user-profile information from LDAP server. This is kind of an…
puzzled confused
  • 151
  • 2
  • 6
  • 12
0
votes
1 answer

OpenLdap : How to query for alias objects from spring ldap api?

I am using spring ldap to connect to OpenLdap. Wondering if there is any way in which we can query all the aliases present inside a particular base? I tried ldaptemplate.search, but it returns only the object inside the base, according to the filter…
sagar
  • 3
  • 2
0
votes
1 answer

LDAP Query to get all OUs a given user has delegated rights to

I'm not sure if this is possible, but I want to get the following sub OUs from a given OU in an AD via LDAP: Get all OUs that can be managed (permission to set passwords, to edit users or groups or whatever) by the given user X. To get OUs I can…
Turrau
  • 452
  • 1
  • 4
  • 11
0
votes
1 answer

Generic ldap nested group implementation

I need to implement nested group membership for generic AD services. Previously, i was using a specific search-filter ("member:1.2.840.113556.1.4.1941:=") through which using a single search request, i was able to get hold of all group membership…
puzzled confused
  • 151
  • 2
  • 6
  • 12
0
votes
1 answer

DirectorySearcher.Filter which queries active directory to return upcoming events of the current week

I am trying to get all birthdays and anniversaries which fall under current week. I am using Directory Searcher and LDAP. I am new to LDAP and I am using the below code: string _path = "LDAP:"; …
0
votes
1 answer

How can I search for items with attributes matching a specified pattern via LDAP?

I'm trying to search an LDAP server for all items with exactly the attributes specified. The LDAP schema I'm dealing records user roles by: creating a object type that may contain any of several attributes (the roles), and setting the each role's…
tpdi
  • 34,554
  • 11
  • 80
  • 120
0
votes
2 answers

LDAP Getting Full user Name C++

I'm writing a little Application at my Office. In this Application i have to get the full UserName. It's written in Qt / C++ I like to get this Information over LDAP. Now i can connect to our Active Directory Server and can connect to the Search…
Chris9327
  • 3
  • 1
  • 3
0
votes
2 answers

Django LDAP: How to map extra fields in Active Directory to Django User Database

I would like to map some of the field available in my companies Active Directory to my Django Application like department, Job Title so on. I am using the Django_auth_ldap for backend authentication and it copies the data and updates the record in…
Raunak Agarwal
  • 7,117
  • 6
  • 38
  • 62
0
votes
1 answer

Java LDAP Error while doing the lookup

I am doing a lookup of the Object in the Sun One LDAP and getting the exception given below: javax.naming.NamingException: problem generating object using object factory [Root exception is java.lang.IllegalAccessException: Class…
Bharat
  • 109
  • 1
  • 1
  • 8
0
votes
1 answer

Is there an LDAP library that handles all of the RFC4511 logic?

RFC4511 (section 4.5.3.1) shows that if a directory is split over several servers, then the client needs to wade through several redirections in order to get a definitive answer. It seems silly that every client would need to do this. Is there any…
No One in Particular
  • 2,846
  • 4
  • 27
  • 32