*/ $status = ""; if (isset ($newpasswd)){ if(($oldpasswd == $bindpw) && ($newpasswd==$newpasswd2)) { $status="Password changed. Log off."; unset($info); $info["userpassword"] = "{crypt}" . crypt($newpasswd, makeSalt()); ldap_modify($ds, $binddn, $info); unset ($newpasswd); } else { $status="Password not changed. Try again."; unset ($newpasswd); } } elseif (isset ($postmaster)){ unset($info); $info["postmaster"] = $postmaster; ldap_modify($ds, $binddn, $info); unset ($postmaster); $status="Postmaster changed."; } $dn ="ou=People,domain=" . $domain . ",ou=Domains, " . $basedn; $filter="(objectClass=mailaccount)"; $sr=ldap_search($ds,$dn,$filter); $kr=ldap_count_entries($ds,$sr); $dn ="domain=" . $domain . ",ou=Domains, " . $basedn; $filter="(objectClass=maildomain)"; $sr=ldap_search($ds,$dn,$filter); $info = ldap_get_entries($ds, $sr); ?>
Domain:
Users:

Change the postmaster on the domain, or change the domain password in the 'Change domain password' area.
Postmaster: ">
Change:
 
Change domain password
Old password:
New password:
Confirm:
 
Status: