Kevin Veen-Birkenbach 65663de7a7 ci: add unit test workflow and package setup for ldapsm
- Add GitHub Actions workflow to run make test
- Introduce pyproject.toml with python-ldap dependency and CLI entrypoint
- Add Makefile with install/test/clean targets
- Move tests to src-based package layout and fix imports
- Remove legacy requirements.yml

https://chatgpt.com/share/695d2615-d664-800f-b821-5705c631bfe8
2026-01-06 16:11:04 +01:00
2025-06-27 16:11:40 +02:00
2025-04-27 14:54:55 +02:00
2026-01-06 15:58:33 +01:00

LDAP Schema Manager 🛠️

GitHub Sponsors Patreon Buy Me a Coffee PayPal

A Python-based CLI tool for managing OpenLDAP schema snippets under cn=config, allowing you to create or update schema entries—including custom olcAttributeTypes and olcObjectClasses—via LDAPI.

🚀 Installation

You can install ldapsm easily using Kevin's package manager:

pkgmgr install ldapsm

📝 Usage

After installation, run:

ldapsm --help

to view all available commands and options.

Example

ldapsm \
  -s ldapi:/// \
  -D "" \
  -W "" \
  -n nextcloud \
  -a "( 1.3.6.1.4.1.99999.1 NAME 'nextcloudQuota' DESC 'Quota for Nextcloud' EQUALITY integerMatch ORDERING integerOrderingMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.27 SINGLE-VALUE )" \
  -c "( 1.3.6.1.4.1.99999.2 NAME 'nextcloudUser' DESC 'Auxiliary class for Nextcloud attributes' AUXILIARY MAY ( nextcloudQuota ) )"

📖 Help

For detailed usage and options, run:

ldapsm --help

🛡️ Contributing

Contributions, issues, and feature requests are welcome! Feel free to check issues.

📜 License

This project is licensed under the MIT License.


Author: Kevin Veen-Birkenbach

Description
No description provided
Readme MIT 83 KiB
Languages
Python 95.4%
Makefile 4.6%