Adding LDAP Users to Group on Account Creation in PHP

I didn't do the research on this one but definitely worth a blog post as I can see it as something I might need to use again in the future.

if (ldap_add($ldapConn, $dn, $ldaprecord)) { //Lets add the record
add_user_group($dn, "CN=SSL-VPN-Access,OU=DMZ-Groups,DC=dmz,DC=lab");
add_user_group($dn, "CN=IPKVM-Users,OU=DMZ-Groups,DC=dmz,DC=lab");
add_user_group($dn, "CN=AAA-Infra-User,OU=DMZ-Groups,DC=dmz,DC=lab");
add_user_group($dn, "CN=AAA-Testbed,OU=DMZ-Groups,DC=dmz,DC=lab");
return true;
}