- Posts: 4
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
problème import LDAP
- Bagghera
- Topic Author
- Offline
- New Member
Less
More
9 years 3 months ago #114786
by Bagghera
problème import LDAP was created by Bagghera
Bonjour,
Je viens d'installer la version 2.0.5+ de Limesurvey et j'ai l'erreur suivante lorsque je veux importer des invitations depuis LDAP :
CDbException
CDbCommand failed to execute the SQL statement: SQLSTATE[22021]: Character not in repertoire: 7 ERREUR: séquence d'octets invalide pour l'encodage « UTF8 » : 0xc9 0x6c. The SQL statement executed was: SELECT count(tid) from lime_tokens_371444 where email=:email and firstname=:firstname and lastname=:lastname
Ma base postgres est effectivement en UTF-8 mais je vois pas ce qui peut poser problème. Mon annuaire LDAP est en fait un AD 2008R2.
Pour info je suis sur Gentoo, php 5.5.18. , postgresql-9.3.5, apache-2.2.27.
Merci d'avance
Je viens d'installer la version 2.0.5+ de Limesurvey et j'ai l'erreur suivante lorsque je veux importer des invitations depuis LDAP :
CDbException
CDbCommand failed to execute the SQL statement: SQLSTATE[22021]: Character not in repertoire: 7 ERREUR: séquence d'octets invalide pour l'encodage « UTF8 » : 0xc9 0x6c. The SQL statement executed was: SELECT count(tid) from lime_tokens_371444 where email=:email and firstname=:firstname and lastname=:lastname
Ma base postgres est effectivement en UTF-8 mais je vois pas ce qui peut poser problème. Mon annuaire LDAP est en fait un AD 2008R2.
Pour info je suis sur Gentoo, php 5.5.18. , postgresql-9.3.5, apache-2.2.27.
Merci d'avance
The topic has been locked.
- Bagghera
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 1
9 years 3 months ago #114893
by Bagghera
Replied by Bagghera on topic problème import LDAP
Pas d'idée ?
Merci
Merci
The topic has been locked.
- Nickko
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 1957
- Thank you received: 411
9 years 3 months ago #114895
by Nickko
Nickko
Head of ergonomics, UX & UI.
Replied by Nickko on topic problème import LDAP
Non pas d'idée, en ce qui me concerne, LDAP c'est tout de même assez pointu.
Nickko
Head of ergonomics, UX & UI.
The topic has been locked.
- Bagghera
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 1
9 years 3 months ago #114902
by Bagghera
Replied by Bagghera on topic problème import LDAP
He bah en fait c'était bien dans la doc
$ldap_server[$serverId]: optional parameter which gives the encoding used by the Ldap directory to store strings. You usually do not need to setup this parameter as the default assumed encoding, 'utf-8', is the standard encoding for LDAP directories. However, if you're using Active Directory and are having problems importing accentuated strings, then try to setup this parameter to the encoding used in you area (for instance 'cp850' for West Europe). You can refer to the 'Character set of the file' dropdown list in the 'Import Token from CSV file' GUI, to have the full list of supported encodings.
J'avais suivi un peu trop bêtement la partie "What about Active Directory?" qui ne faisait pas mention de ce paramétrage.
Mes 200 utilisateurs vont pouvoir recevoir leur invitation.
Merci à toute l'équipe pour ce bel outil en tout cas.
$ldap_server[$serverId]: optional parameter which gives the encoding used by the Ldap directory to store strings. You usually do not need to setup this parameter as the default assumed encoding, 'utf-8', is the standard encoding for LDAP directories. However, if you're using Active Directory and are having problems importing accentuated strings, then try to setup this parameter to the encoding used in you area (for instance 'cp850' for West Europe). You can refer to the 'Character set of the file' dropdown list in the 'Import Token from CSV file' GUI, to have the full list of supported encodings.
J'avais suivi un peu trop bêtement la partie "What about Active Directory?" qui ne faisait pas mention de ce paramétrage.
Mes 200 utilisateurs vont pouvoir recevoir leur invitation.
Merci à toute l'équipe pour ce bel outil en tout cas.
The topic has been locked.
- Bagghera
- Topic Author
- Offline
- New Member
Less
More
- Posts: 4
- Thank you received: 1
9 years 3 months ago #114903
by Bagghera
Replied by Bagghera on topic problème import LDAP
du coup ça m'a encore plus orienté vers la bonne recherche dans le forum et je suis tombé sur une réponse bien plus cohérente (en cp850 j'avais des problèmes d'accent)
www.limesurvey.org/fr/forum/design-issue...mport-from-ad#100083
Pour un AD 2008 R2, il faut donc mettre :
$ldap_server[$serverId] = "ldapv3";
$ldap_server[$serverId] = 'utf-8';
Bonne journée
www.limesurvey.org/fr/forum/design-issue...mport-from-ad#100083
Pour un AD 2008 R2, il faut donc mettre :
$ldap_server[$serverId] = "ldapv3";
$ldap_server[$serverId] = 'utf-8';
Bonne journée
The following user(s) said Thank You: Nickko
The topic has been locked.
- Nickko
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 1957
- Thank you received: 411
9 years 3 months ago #114905
by Nickko
Nickko
Head of ergonomics, UX & UI.
Replied by Nickko on topic problème import LDAP
Merci d'avoir partager la solution, ça pourra être utile à quelqu'un d'autre
Nickko
Head of ergonomics, UX & UI.
The topic has been locked.
Moderators: Nickko