Skip to content

Instantly share code, notes, and snippets.

Avatar

Eli Kleinman elik1001

  • Curbngo Photo
  • New York City
View GitHub Profile
View create_oud-index.sh
dsconfig --hostname localhost --port 4444 -X create-local-db-index --element-name userRoot --index-name membernisnetgroup \
--set index-type:presence \
--set index-type:equality \
--set index-type:substring \
--set index-entry-limit:8000 \
--bindDN cn=Directory\ Manager \
--bindPasswordFile /oud/certs/pw.txt \
--trustAll --no-prompt
dsconfig --hostname localhost --port 4444 -X create-local-db-index --element-name userRoot --index-name sn \
--set index-type:presence \
View remote-backup.py
#!/bin/python
import os
import sys
import time
import datetime
import subprocess
import smtplib
from email.mime.text import MIMEText