cyberrant Posted August 14, 2012 Posted August 14, 2012 ok, i need to be able to create a user in moodle and have that user then created back into my servers AD. Is This Even Possible? i know the reverse is possible so it can't be to difficult. is there anyone who can help? my site is currently running moodle 2.2.2+
pcstru Posted August 14, 2012 Posted August 14, 2012 It is possible but might depend on your skills! I'd use ODBC to connect a powershell script to the moodle database and process the users table, looking to see if users already existed and creating them if not. This might get more complex depending on how your organise your users into AD's Organisational Units. This script would probably have to be scheduled (run overnight or every 10 mins or whatever) - although that might depend on your mysql version, it should be possible to use a trigger on the users table to kick the process into action but that's probably quite difficult for reasonably little benefit.
danbuntu Posted August 14, 2012 Posted August 14, 2012 Moodle 2.0 onwards has this as an option. In the LDAP configuration page select 'create user externally' in the 'enable user creation' section. I've never used it though so no idea how well it works or if it plays nicely with AD
TechMonkey Posted August 14, 2012 Posted August 14, 2012 Why not do it the other way round? Create the user in AD and then let Moodle log on using LDAP as authentication.
cyberrant Posted August 14, 2012 Author Posted August 14, 2012 right, we use the facility to moodle block to add users to moodle, having moodle then create the users in the AD would save so much time.
Marci Posted August 17, 2012 Posted August 17, 2012 The Fac-2-Moodle block should only create users if it detects that they exist in AD with the same ID Number. AD users should be created first before running the Fac-2-Moodle import. Generally via a CSV export of users from Facility bulk-imported into AD... THEN run Fac-2-Moodle.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now