Main Menu


These are various resources and commands that helped build this app.


Import stuff

This will import an ldif file into the LDAP server:

ldapadd -x -D cn=admin,dc=hack,dc=int -W -f bits.ldif

Query stuff

ldapsearch -x -LLL -b dc=hack,dc=int 'uid=leonardo' cn gidNumber

Modify the schema

ldapmodify -Q -Y EXTERNAL -H ldapi:/// -f uid_index.ldif

Check the change - must be ran as root

ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config '(olcDatabase={1}mdb)' olcDbIndex

Show installed schemas

ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=schema,cn=config dn

OpenLDAP server howto


Sample ldap client

Go ldap server

Dump the schema

Will create a schema with secret stuff in it so they have to dump the schema to find it then show it’s fields


Set where the local packages are installed

export GOPATH=/usr/local/go/

The Go LDAP package

Useful Go stuff

fmt formats

LDAP library docs

Go Code Layout

Vim plugin

Needs an up-to-date version of Vim to work


LDAP Exploitation

Injection cheatsheets and docs


Lab created by Digininja, for more information see the vuLnDAP project.