Skip to content

Conversation

@wberrier
Copy link

@wberrier wberrier commented Jan 4, 2017

in case the credentials should be loaded from an external file

My particular use case is that I want to version control the .cfg
file, but I don't want to put my username/password in the file

wberrier and others added 20 commits January 4, 2017 16:51
in case the credentials should be loaded from an external file

My particular use case is that I want to version control the .cfg
file, but I don't want to put my username/password in the file
Mostly in regards to unicode string handling.

Ldap search results returns "keys" in utf-8, but values are often in
bytes. stringify values after querying so that results and cache
aren't treated differently.

Open files in text mode instead of binary mode.

SafeConfigParser was renamed to ConfigParser in python3.

LOG.warn is deprecated, change to "LOG.warning" to avoid deprecation
output messages.
... such as pass from the passwordstore
unfortunately the ldap module still seems to depend on C source as shows the
error message

gcc -pthread -Wsign-compare -DNDEBUG -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -DOPENSSL_LOAD_CONF -fwrapv -fno-semantic-interposition -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -IVendor/ -fmessage-length=0 -grecord-gcc-switches -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -g -IVendor/ -fPIC -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.4 "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" -IModules -I/usr/include/python3.11 -c Modules/LDAPObject.c -o build/temp.linux-x86_64-cpython-311/Modules/LDAPObject.o
In file included from Modules/LDAPObject.c:3:0:
Modules/common.h:9:10: fatal error: Python.h: File o directory non esistente
        ^~~~~~~~~~
compilation terminated.
error: command '/usr/bin/gcc' failed with exit code 1
allow setting password by passing command
Missing config keys, unsafe LDAP filters, and bad XDG paths broke runs.
Add get() fallbacks; escape filter chars; limit attrs; decode safely.
Create XDG config/cache dirs; use simple_bind_s; handle unbind.
Return only addresses for mutt; set stdout encoding; log errors.
Packaging was outdated; setup.py blocked modern PEP 517 builds.
Add pyproject.toml with metadata; remove setup.py; define script.
Co-authored-by: Copilot <[email protected]>
no C dependencies any more by using ldap3 and installable by pipx/ uv tool
fix repo address and bump version
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

Successfully merging this pull request may close these issues.

2 participants