Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an option to ldapsearch for not encoding values to base64 #78

Open
davidcoutadeur opened this issue May 30, 2024 · 1 comment
Open
Milestone

Comments

@davidcoutadeur
Copy link
Contributor

add an option to ldapsearch for not encoding values to base64 (like ldif-wrap=no for not wrapping the lines)

Two options for this need:

  • do this directly to ldapsearch source code (contribution to openldap)
  • create a wrapper in slapd-cli project that embed ldapsearch and decode values.

We have to think about the implications about binary values: do we have a way to detect them and still encode them even if the option is passed?

@davidcoutadeur davidcoutadeur added this to the 3.5 milestone May 30, 2024
@davidcoutadeur
Copy link
Contributor Author

For the record, there is already an already an option that does nearly this feature, except it writes in multiple files the output of non-ascii values. See option -t and -tt in the manual

Example:

ldapsearch -x -H 'ldap://localhost:389' -D 'cn=Manager,dc=my-domain,dc=com' -w secret -b 'ou=people,dc=my-domain,dc=com' -LLL '(uid=test)' -tt
dn: uid=test,ou=people,dc=my-domain,dc=com
uid:< file:///tmp/ldapsearch-uid-HWN9yG
agriLienStructure:< file:///tmp/ldapsearch-agriLienStructure-AL2E9z
sn:< file:///tmp/ldapsearch-sn-U7N1vA
objectClass:< file:///tmp/ldapsearch-objectClass-OqHGrt
objectClass:< file:///tmp/ldapsearch-objectClass-sPt136
objectClass:< file:///tmp/ldapsearch-objectClass-LuLTVG
objectClass:< file:///tmp/ldapsearch-objectClass-zecD77
objectClass:< file:///tmp/ldapsearch-objectClass-BqSCUQ
objectClass:< file:///tmp/ldapsearch-objectClass-5ZUWw1
agriAncienMel:< file:///tmp/ldapsearch-agriAncienMel-e5mRyd
userCertificate;binary:< file:///tmp/ldapsearch-userCertificate;binary-fyalQa
mobile:< file:///tmp/ldapsearch-mobile-5Q0f6l
mail:< file:///tmp/ldapsearch-mail-BcAdfn
cn:< file:///tmp/ldapsearch-cn-ZPKF7z
userPassword:< file:///tmp/ldapsearch-userPassword-JnJ8Ab
description:< file:///tmp/ldapsearch-description-a7Jna9

@coudot coudot modified the milestones: 3.5, Backlog Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants