I'm on vacations now so I can't send it. But the trick is prepopulate OMs database with the LDAP data just like OM does plus moodle username in externalUseId column. If you do it when you create your LDAP user moodle plugin never creates a record.
- Juan Carrera Michael Wuttke <michael.wut...@beuth-hochschule.de> wrote: >Hello Juan, > >please could you send your openmeetings_gateway.php your diff of the >file? I tried your suggestions but it doesn’t work. I've got an user >via moodle with the userid of moodle in the column >om_user.externaluserid and the om_user.type 'user' and I've got an >user via LDAP directly with no entry in the column >om_user.externaluserid and the om_user.type 'ldap'. > >Many thanks, >Michael > >Am 07.07.2014 um 12:54 schrieb Juan Carrera: >> Sure, for moodle module version 2013032500 (OM 2.x) in >> openmeetings_gateway.php there are two ocurrences of: >> '&externalUserId='.$userId . You should change it to: >> '&externalUserId='.urlencode($username) . >> >> That way externalUserId is not anymore Moodle's User id, but it's >> still unique and is "more predictable". When we create OM user >> (from ldap data) we write username also as externalUserId. >> >> >> >> El 07/07/14 12:09, Michael Wuttke escribió: >>> Hello Juan, >>> >>> could you provide your modifications you made in the Moodle >>> plugin her in the user mailing list? >>> >>> Thanks, Michael >>> >>> Am 07.07.2014 08:24, schrieb Juan Carrera: >>>> Hi, With OM 2.x we modified Moodle plugin to use moodle >>>> username instead of moodle id and we create OM users in a >>>> nightly cron, synchronizing with LDAP. That way our users have >>>> only one account in OM. With OM 3 you have to use 3.0.3. Maxim >>>> made some changes in ACLs and in our test we could use same >>>> user both from login screen and from moodle. But I don't know >>>> if 3.0.3 it's production ready. >>>> >>>> >>>> El 04/07/14 15:18, Michael Wuttke escribió: >>>>> Hello, >>>>> >>>>> Is it possible to use OpenMeetings via LDAP and/or a >>>>> external tool like moodle only with one account in OM? >>>>> >>>>> The background is: Our users using moodle via LDAP >>>>> authentication and if they entering a OM room via moodle the >>>>> first time a new OM account will be created. And if these >>>>> users later login at the GUI of the OM instance via LDAP >>>>> authentication a new OM account will be created with the same >>>>> username, firstname, lastname and email address like the >>>>> created one via moodle. >>>>> >>>>> The other way around: first login via GUI and then login via >>>>> moodle it is the same. >>>>> >>>>> How can I avoid these situation, having two accounts for one >>>>> user? >>>>> >>>>> Thanks for any ideas or hints, Michael >>>>> >>>> -- Logotipo del servicio de informática y comunicaciones. >>>> Universidad Zaragoza >>>> >>>> *Juan Ramón Carrera Marcén * * Área de gestión* >>>> >>>> Residencia de profesores Pedro Cerbuna 12, 50009 Zaragoza Tel. >>>> (34) 876553689 carre...@unizar.es <mailto:carre...@unizar.es> >>>> >>>> unizar.es >> >> -- Logotipo del servicio de informática y comunicaciones. >> Universidad Zaragoza >> >> *Juan Ramón Carrera Marcén * * Área de gestión* >> >> Residencia de profesores Pedro Cerbuna 12, 50009 Zaragoza Tel. (34) >> 876553689 carre...@unizar.es <mailto:carre...@unizar.es> >> >> unizar.es