# ldapmodify to update AD

ldapmodify will use ldif files to update ldap.

```
ldapmodify -v -D 'M.LOVEGOD' -H ldap://dc -W -f ldif
```

If kerberos is required

```
sudo apt install krb5-user libsasl2-modules-gssapi-mit
kinit m.lovegod
ldapmodify -v -D 'M.LOVEGOD' -H ldap://dc -W -f ldif -Y GSSAPI -R ABSOLUTE.htb -f ldiffile
```

**Ldif File**

```
dn: CN=NETWORK AUDIT,CN=USERS,DC=ABSOLUTE,DC=HTB
changetype: modify
add: member
member: CN=M.LOVEGOD,CN=USERS,DC=ABSOLUTE,DC=HTB

```
