Skip to content

Instantly share code, notes, and snippets.

@jaseg
jaseg / README.md
Last active March 26, 2024 14:21
Convert openldap .schema files to .ldif files

This is old!

Hey there,

occassionally, people still seem to stumble across this script because it seems it shows up in some search results. Please be aware that I made this script ten years ago, and by now, there is probably a better way to achieve the same result.

Have a nice day!

@ptman
ptman / lookup_plugins:ldap_sshkeys.py
Last active January 23, 2019 11:26
Trying to get and use complex data from LDAP for Ansible.replace : in filename with /
# vim: set si ai et sw=4 sts=4 ts=4 ft=python:
# coding: utf-8
# Copyright (c) 2013, ZenRobotics Ltd.
# Author: Paul Tötterman <paul.totterman@zenrobotics.com>
"""Ansible lookup plugin for looking up user data in an LDAP directory."""
from ansible import utils, errors
import ldap