Okay, so I am using phpBB and LDAP-AD to authenticate users. All users in my AD have a numeric username. What I want is to somehow edit this LDAP login file View attachment auth_ldap.php to assign a particular usergroup in phpBB to users on their first login. I guess within this php file we'll have to write a sql query, but I have to do it. Any clue!