Skip to content

Instantly share code, notes, and snippets.

@muzzol
Created February 2, 2026 10:48
Show Gist options
  • Select an option

  • Save muzzol/33656e009326dc4b2a094f264b7f201f to your computer and use it in GitHub Desktop.

Select an option

Save muzzol/33656e009326dc4b2a094f264b7f201f to your computer and use it in GitHub Desktop.
mozldap tools debian
# compilar mozldap tools a Debian (altres?)
# referències
# https://github.com/diegows/389DS-debian/blob/master/mozldap/buildmozldap
# baixar el codi
wget https://github.com/dogtagpki/ldap-sdk/archive/refs/tags/v5.4.1.zip
# descomprimir i entrar al directori de C
unzip v5.4.1.zip
cd ldap-sdk-5.4.1/c-sdk/
# dona visibilitat a la biblioteca softokn3
ln -s /usr/lib/x86_64-linux-gnu/libsoftokn3.so /usr/lib/
# cercar les declaracions de 'main()' i afegir int abans
# a la versió 5.4.1 estan a les línies 2313 i 2952
# int main()
# configure
./configure --prefix=/opt/mozldap --with-system-nspr --enable-clu --with-system-nss --with-dist-prefix=/opt/mozldap
# el make dona molts warnings. no fa falta fer make install.
make
# substituim links amb els originals
# https://stackoverflow.com/questions/7167424/replace-all-symlinks-with-original
shopt -s globstar
# afegim el directori bin a la cerca de biblioteques (.bashrc)
export LD_LIBRARY_PATH=/opt/mozldap/bin/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment