= Add a parameter for optional suppressing of error msg = If multiple LDAP authenticators are used the first ldap authenticator might find you're not validated correctly. Even though a second authentication method provides a successful login you end up with an error message "Invalid username or password". The `report_invalid_credentials` parameter one can provide after having applied the patch below allows to suppress the error being generated on the first ldap authenticator. See line 5 and 6 {{{#!python ## config snippet, simplified for documentation purposes from MoinMoin.auth.ldap_login import LDAPAuth from farmconfig import FarmConfig automation_users_ldap = LDAPAuth( ..., name='ldap_automated', # requires recent 1.8 (e.g. 1.8.7) report_invalid_credentials=False, # don't show error message from this authenticator (requires >1.8.7 or patch, see below) ... ) human_users_ldap = LDAPAuth( ..., name='ldap_human', # requires recent 1.8 (e.g. 1.8.7) report_invalid_credentials=True, # optional but set for clarity ...) # for old 1.8.x (e.g. 1.8.4) you might need instead of the name=... param: #automation_users_ldap.name ='ldap_automated' #human_users_ldap.name ='ldap_human' class FarmConfig(DefaultConfig): #in my case i'm using a farm and want to set ldap authentication per instance ... class Config(FarmConfig): # your regular instance config or an instance in a farm auth = [automation_users_ldap, human_users_ldap] # ... }}} = Patch / Changeset = Remco, thanks for the patch! It was added to 1.8 (and will later be merged into 1.9) by: http://hg.moinmo.in/moin/1.8/rev/0ca159b745e8 Note: I changed the parameter name from "report_invalid_username" to "report_invalid_credentials" and also updated the sample ldap_login snippet. -- ThomasWaldmann <> ---- CategoryFeatureImplemented