Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

TypeError: not all arguments converted during string formatting ?

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
ldapodooV8ubunut
3 Réponses
19576 Vues
Avatar
Madura

Hello All,

In my Odoo server I'm planning to integrate LDAP authentication, I have already configured the LDAP authentication, but when I login to the Odoo server, it gives this error,

TypeError: not all arguments converted during string formatting

Can anyone help me to resolve this?

Thank You.

0
Avatar
Ignorer
Avatar
Fabio Torchetti
Meilleure réponse

  Hi,

 this issue is due to the new way on how formatting works in Python. You will need to change the ldap filter source to match the new formatting. The source is the last file you seen in the stack trace of the error:

  • /usr/share/pyshared/ldap/filter.py , line 55, in filter_format

 Open the file, the 55th line needs to be changed to:

  return filter_template.format(*map(escape_filter_chars,assertion_values));

This is a temporary hack - next versions of the python-ldap library should solve the problem.

You will also need to change the filter in the LDAP configuration of the company. If, for example, you want to

user the "uid" attribute to lookup the username, the filter should look like:

  •   uid={0}

​

Fabio "MrWHO" Torchetti

 

1
Avatar
Ignorer
Vadims Briksins

The same problem, thank you! that was very helpfull answer, unfortunatly because of karma limit I cant vote it yet

Avatar
adam dixon
Meilleure réponse

I am receiving the same problem.  Log follows: 

 

  File "/opt/odoo/openerp/http.py", line 617, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/opt/odoo/openerp/addons/base/ir/ir_http.py", line 126, in _dispatch
    result = request.dispatch()
  File "/opt/odoo/openerp/http.py", line 635, in dispatch
    r = self._call_function(**self.params)
  File "/opt/odoo/openerp/http.py", line 294, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/openerp/http.py", line 291, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/openerp/http.py", line 754, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/openerp/http.py", line 387, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/addons/auth_oauth/controllers/main.py", line 93, in web_login
    response = super(OAuthLogin, self).web_login(*args, **kw)
  File "/opt/odoo/openerp/http.py", line 387, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/addons/auth_signup/controllers/main.py", line 38, in web_login
    response = super(AuthSignupHome, self).web_login(*args, **kw)
  File "/opt/odoo/openerp/http.py", line 387, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/addons/web/controllers/main.py", line 508, in web_login
    uid = request.session.authenticate(request.session.db, request.params['login'], request.params['password'])
  File "/opt/odoo/openerp/http.py", line 903, in authenticate
    uid = dispatch_rpc('common', 'authenticate', [db, login, password, env])
  File "/opt/odoo/openerp/http.py", line 108, in dispatch_rpc
    result = dispatch(method, params)
  File "/opt/odoo/openerp/service/common.py", line 26, in dispatch
    return fn(*params)
  File "/opt/odoo/openerp/service/common.py", line 38, in exp_authenticate
    return res_users.authenticate(db, login, password, user_agent_env)
  File "/opt/odoo/openerp/addons/base/res/res_users.py", line 464, in authenticate
    uid = self._login(db, login, password)
  File "/opt/odoo/addons/auth_ldap/users_ldap.py", line 258, in _login
    entry = ldap_obj.authenticate(conf, login, password)
  File "/opt/odoo/addons/auth_ldap/users_ldap.py", line 99, in authenticate
    filter = filter_format(conf['ldap_filter'], (login,))
  File "/usr/share/pyshared/ldap/filter.py", line 55, in filter_format
    return filter_template % (tuple(map(escape_filter_chars,assertion_values)))
TypeError: not all arguments converted during string formatting

 

0
Avatar
Ignorer
Avatar
Jean-Philippe
Meilleure réponse

Hello all,

I've got the same problem.

Can anyone help us to resolve this?

Thanks

0
Avatar
Ignorer
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
How to remove add-on manually?
ldap populate odooV8
Avatar
Avatar
7
déc. 19
11616
Does auth_ldap compatible with Odoo 8 ?
ldap ubuntu odooV8
Avatar
Avatar
1
mars 15
5265
CONFIGURACION DE CORREO PROPIO POR PRUMERA VEZ
odooV8
Avatar
0
mars 25
2037
How to remove model if not in the py files anymore
odooV8
Avatar
0
janv. 25
4335
Start odoo server automatically in Ubuntu 14.04 on reboot Résolu
odooV8
Avatar
Avatar
1
août 23
15944
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now