Skip to content
  • Dirk Sarpe @dirk-sarpe ·

    Für Elements:

    #!/usr/bin/env bash
    
    # set pass as env varible
    
    bind="svc_elements@geomar.de"
    base="dc=geomar,dc=de"
    dn="OU=Users,OU=GEOM,OU=_Organisation,DC=geomar,DC=de"
    filter="(&(|(objectClass=user))(!(userAccountControl:1.2.840.113556.1.4.803:=2)))"
    
    ldapsearch -w "$pass" -D "$bind" -b "$base" "$filter" "$attr"
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment