I have created a web based app in php/adldap running on our local intranet that allows people to create active directory accounts and add users to mailing lists without logging in to the AD (domain controller) box.
I'd like to be able to automate the creation of the exchange account as well, but our exchange server is different physical hardware to the domain controller. I am unsure whether it's even possible to do this via ldap.
Ideally I'd like to do this in PHP but if it's not possible I'm happy to consider any other methods that will get the job done.
As discussed, I'm open to options here. The ideal is to continue the php web based script, but if there's a way to run a scheduled task on the exchange server that synchs only mailboxes created in the 'staff' category (not 'users') that might be an option too...