It’s FIX, with the help of Microsoft guys (AD). With the link you provide about country ISO stuff, we change this
ldap_user_attr_country=co to this ldap_user_attr_country=c now, it’s working ! De : Maxim Solodovnik [mailto:[email protected]] Envoyé : 4 mai 2017 08:16 À : Openmeetings user-list Objet : RE: default country when user is create Maybe you have AD attribute with country code, not name? WBR, Maxim (from mobile, sorry for the typos) On May 4, 2017 18:42, "Chamberland, Martin" <[email protected]<mailto:[email protected]>> wrote: DEBUG 05-04 07:36:46.133 o.a.o.c.l.LdapLoginManagement:232 [http-nio-0.0.0.0-5080-exec-3] - getByLogin:: authenticated ? true, login = '[email protected]<mailto:[email protected]>', domain = 2, user = User [id=23, firstname=Martin, lastname=Chamberland, [email protected]<mailto:[email protected]>, pictureuri=null, deleted=false, languageId=4, address=Address [id=23, country=AD, street=1400, my complete address, town=MyTown, zip=C6X 7K5, deleted=false, [email protected]<mailto:[email protected]>, phone=(415) 828-5666, poste 4444], externalId=null, externalType=null, type=ldap] De : Maxim Solodovnik [mailto:[email protected]<mailto:[email protected]>] Envoyé : 3 mai 2017 22:58 À : Openmeetings user-list Objet : Re: default country when user is create Hello Martin, Just have checked the code Country is expected as ISO alpha-2 code: http://www.nationsonline.org/oneworld/country_code_list.htm In case country fail to map following line should appear in the log: WARN <skipped> Invalid country found: <skipped>, will be replaced with: <skipped> Could you check what value is stored in AD? Do you have WARN like this in your openmeetings.log? On Thu, May 4, 2017 at 12:28 AM, Chamberland, Martin <[email protected]<mailto:[email protected]>> wrote: Thank’s Maxim ! De : Maxim Solodovnik [mailto:[email protected]<mailto:[email protected]>] Envoyé : 3 mai 2017 13:26 À : Openmeetings user-list Objet : RE: default country when user is create Will try to check tomorrow WBR, Maxim (from mobile, sorry for the typos) On May 4, 2017 00:22, "Chamberland, Martin" <[email protected]<mailto:[email protected]>> wrote: In the LDAP/AD, the country is Canada, but after i login (and the user is automactly created) it still Andorre (Andorra) De : Maxim Solodovnik [mailto:[email protected]<mailto:[email protected]>] Envoyé : 3 mai 2017 13:20 À : Openmeetings user-list Objet : RE: default country when user is create Country is Canada in ldap and in user What is wrong? WBR, Maxim (from mobile, sorry for the typos) On May 4, 2017 00:17, "Chamberland, Martin" <[email protected]<mailto:[email protected]>> wrote: Those two seem to work correctly : postalCode streetAddress I can see those two parameters in the user (after it was created) De : Maxim Solodovnik [mailto:[email protected]<mailto:[email protected]>] Envoyé : 3 mai 2017 13:14 À : Openmeetings user-list Objet : RE: default country when user is create Maybe country in ad is mapped to different attribute? WBR, Maxim (from mobile, sorry for the typos) On May 4, 2017 00:12, "Chamberland, Martin" <[email protected]<mailto:[email protected]>> wrote: So you said probably that setting is not set in my AD ? I will have to ask Microsoft guys, right ? De : Maxim Solodovnik [mailto:[email protected]<mailto:[email protected]>] Envoyé : 3 mai 2017 13:06 À : Openmeetings user-list Objet : RE: default country when user is create I believe you modify the parameter so it will read country from AD WBR, Maxim (from mobile, sorry for the typos) On May 4, 2017 00:03, "Chamberland, Martin" <[email protected]<mailto:[email protected]>> wrote: This parameter is already in the ldap.cfg file I think it read nothing in my LDAP/AD I talk about COUNTRY in each user. When they connected for the first time from LDAP/AD, they are created in the OM db There is a field COUNTRY, i wish this field is set by default to CANADA. De : Maxim Solodovnik [mailto:[email protected]<mailto:[email protected]>] Envoyé : 3 mai 2017 11:51 À : Openmeetings user-list Objet : Re: default country when user is create There is attribute in ldap config: ldap_user_attr_country=co Is it what you are looking for? WBR, Maxim (from mobile, sorry for the typos) On May 3, 2017 22:30, "Chamberland, Martin" <[email protected]<mailto:[email protected]>> wrote: Hi there, Is there a hidden parameter somewhere we can use to set de default country when a user connected to OM and is create on the fly with LDAP/AD configuration. I found the parameter « default_lang_id » and it’s working perfectly. Thank’s in advance. -- WBR Maxim aka solomax
