Multiple LDAP resolvers

When I specify two LDAP resolvers with this syntax:

ldaps://ldap01.example.com, ldaps://ldap02.example.com, I get the following
error:

ValueError(“invalid literal for int() with base 10:
//ldap02.example.com’”,)

If I specify just ldaps://ldap01.example.com, it works. Is it possible to
specify two LDAP servers?

Q29udGVudC1UeXBlOiBhcHBsaWNhdGlvbi9wZ3Atc2lnbmF0dXJlOyBuYW1lPSJzaWduYXR1cmUu
YXNjIg0KQ29udGVudC1EZXNjcmlwdGlvbjogT3BlblBHUCBkaWdpdGFsIHNpZ25hdHVyZQ0KQ29u
dGVudC1EaXNwb3NpdGlvbjogYXR0YWNobWVudDsgZmlsZW5hbWU9InNpZ25hdHVyZS5hc2MiDQoN
Ci0tLS0tQkVHSU4gUEdQIFNJR05BVFVSRS0tLS0tDQpWZXJzaW9uOiBHbnVQRyB2MQ0KDQppUUlj
QkFFQkFnQUdCUUpWTDZwM0FBb0pFQkJoWkZVdWpZRkpqOUVQL2pGNjl2MXU2eDVIUk54bTdJME1K
a0RSDQo0RkNuWlNYTVlsOC90N1NLVmVsQVVVbXNnbzlTUERra1N5TkUxZ1ZZTWF5bWFIUWVBRE91
VHVZaTJkTUlCWURmDQpoNHNqeUxiNGZJODFWVkxJV1RsalVzTk9CMlg5OUtQNG1Bd2JPYnJNYWc0
UEtmQktuU3hYeEJWNkw5TmVUeFFRDQpGNnY4eEYrOWNUaEYydlNVRFE5ZkxTK2hicDBPT01oZHRw
S0dxR0VhZi9PakpFV2FmcytyajZlVjVseGs1ZTFaDQpLQ3VXRHhva1hzQjFzVFNlYWcxaGxCYkNl
R2YyY1EzejkzaEU2ZkEzRFZvVFowNlJlY1E2NklvT3V5YnpLaGhNDQo0NmFuQ0Y0M2V1QmE2UmZU
dVZhMnlZbWUvdnlXOGlzWnh2Rk1qb3lWOTd3M203SERuWmgvL0l5ZUtST05DTW9sDQp5bTNqRVpl
UXJ5cUtWUFNKVUpVaDg5NERzUHJVd2ZBcGNKZjV5MlY2Sm1nNGdESmVJS2wvNENxR1pXYkpySng1
DQozbW9laWRoWDIrU0pyT201azNCR0RVNXZwZDZ2MlkrK1FPcnlIQURPUGx5M0krTGRRRnlmaHRm
dzFwVUZNODFmDQpXY1ZBSmtvMTNXeFpVeENXWkJFWDd0a1VZejhNOGlaMlY0VG5iVkk5b2pxTEdT
Sldwb0dsRXBwellUMVdXbVpuDQprV3FXYURLVjgyWDBFT3J1SVFuYXo4dzNhcG1WSUVNRDJkWlM2
aUpJaS9McXJ1NEZXZXdFRzNDUHpja1pXVndnDQpEQ0xaT3d2TFBBcis0bUg0cXdKSGdJSlZ1UnJq
K0ZIR2J0UXZtVmNQTXJDSVIraDd4WXRLdEpzamplTldoY0J5DQpwTzk0WVVSNVdLSm81Y0h5NURN
cg0KPTNOZ3YNCi0tLS0tRU5EIFBHUCBTSUdOQVRVUkUtLS0tLQ0K

Hi Travis,
redundancy is not yet implemented.
the idea is to use the pooling feature of ldap3.
There is a “todo” in the ldapresolver code but no issue at github, yet.

Kind regards
CorneliusAm Mittwoch, 15. April 2015 23:20:57 UTC+2 schrieb Travis Brown:

When I specify two LDAP resolvers with this syntax:

ldaps://ldap01.example.com, ldaps://ldap02.example.com, I get the
following error:

ValueError(“invalid literal for int() with base 10: ‘//ldap02.example.com
’”,)

If I specify just ldaps://ldap01.example.com, it works. Is it possible
to specify two LDAP servers?

Wow. That’s awesome. Thanks!On Apr 16, 2015, at 8:26 AM, Cornelius Kölbel <cornelius.koelbel@netknights.itmailto:cornelius.koelbel@netknights.it> wrote:

Hi Travis,

I just implemented the LDAP Server Pooling with a Round Robin strategy.

This is the latest commit:

It will be available in version 2.3.

Kind regards
Cornelius

Am 15.04.2015 um 23:20 schrieb Travis Brown:
When I specify two LDAP resolvers with this syntax:

ldaps://ldap01.example.com, ldaps://ldap02.example.com, I get the following error:

ValueError(“invalid literal for int() with base 10: ‘//ldap02.example.comhttp://ldap02.example.com’”,)

If I specify just ldaps://ldap01.example.com, it works. Is it possible to specify two LDAP servers?

You received this message because you are subscribed to the Google Groups “privacyidea” group.
To unsubscribe from this group and stop receiving emails from it, send an email to privacyidea+unsubscribe@googlegroups.commailto:privacyidea+unsubscribe@googlegroups.com.
To post to this group, send email to privacyidea@googlegroups.commailto:privacyidea@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/privacyidea/3d849b15-4f85-434d-bdaf-a092482aa42c%40googlegroups.comhttps://groups.google.com/d/msgid/privacyidea/3d849b15-4f85-434d-bdaf-a092482aa42c%40googlegroups.com?utm_medium=email&utm_source=footer.
For more options, visit https://groups.google.com/d/optout.


Cornelius Kölbel
cornelius.koelbel@netknights.itmailto:cornelius.koelbel@netknights.it
+49 151 2960 1417

NetKnights GmbH
http://www.netknights.ithttp://www.netknights.it/
Landgraf-Karl-Str. 19, 34131 Kassel, Germany
Tel: +49 561 3166797, Fax: +49 561 3166798

Amtsgericht Kassel, HRB 16405
Geschäftsführer: Cornelius Kölbel