Questions tagged [ldapsearch]

21 questions
0
votes
0 answers

Replace anonymous ldapsearch command with curl command?

I have this working ldapsearch command for connecting anonymously to an internal ldap server: $ ldapsearch -h my.host -p 389 -x -LLL -s base -b "" namingContexts dn: namingContexts: DC=org,DC=sample Now I would like to list the same using curl: $…
u123
  • 267
  • 1
  • 8
  • 24
0
votes
0 answers

ldaps does not work with ldapsearch

I'm running ldapsearch against a active directory server, with ldap protocol it works: ldapsearch -h IP -p 389 -b 'DC=testnet,DC=com' -D 'CN=admin,CN=Users,DC=testnet,DC=com' -w 'XX' with ldaps protocol it fails: ldapsearch -H…
daisy
  • 747
  • 4
  • 14
  • 30
0
votes
0 answers

AD - memberOf attribute missing on some accounts

On my AD domain some users do not have "memberOf" attribute set, so these accounts do not appear in search results when I perform an LDAP query like this: memberOf=CN=Group_A,OU=G-Security,OU=CB-Groups,OU=company,DC=lan,DC=name,DC=it Performing that…
J.B.
  • 315
  • 8
  • 23
0
votes
2 answers

LDAP - Add a filter to an LDAP URL so that only users belonging to a certain group can access the app

We enable an application to use LDAP. In the configuration of the application, we need to inform a URL to connect to LDAP. We are currently providing the following URL... ldap://10.2.0.5:389/dc=domain,dc=abc,dc=de?uid QUESTION: We need to add a…
Eduardo Lucio
  • 269
  • 4
  • 14
0
votes
1 answer

LDAP doesn't return a specifi sAMAccountName unless I explicitly search for it

i.e. I have a username - tonysmith, and when I run the query for all accounts in the DC, tonysmith isn't returned unless I specifically query for sAMAccountName=tonysmith. What gives?
Stephen K
  • 162
  • 8
0
votes
1 answer

Openldap backup > restore omits certain attributes

Migrating from Debian Jessie (openldap 2.4.40) to Debian Buster (openldap 2.4.47), I came across a few bumps but the last one is just baffling. First issue: ldapsearch does not return all attributes by default - you have to list them…
zenlord
  • 232
  • 2
  • 9
1
2