Thanks Christian! I made the changes as suggested, but Still I am facing the same issue.
is it any version issue of python_ldap(python-ldap-2.4.32.win32-py2.6) or I am missing something On Saturday, March 4, 2017 at 2:35:08 AM UTC+5:30, Christian Hammond wrote: > > Hi, > > The problem may have to do with this line: > > ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, > 'C:\Bitnami\reviewboardpowerpack-2.5.7-2\apps\ldapserver.crt') > > The backslashes in Python strings are used for escape codes. You'll want > to turn that off. You can do so by putting a 'r' in front of it, like: > > ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, > r'C:\Bitnami\reviewboardpowerpack-2.5.7-2\apps\ldapserver.crt') > > See if that helps. > > Christian > > > On Fri, Mar 3, 2017 at 06:58 <suresh...@gmail.com <javascript:>> wrote: > >> Hi >> >> I Installed Bitnami Review board,2.5.7-2 on Windows 2008, with >> python_ldap-2.4.32 >> tried both checked/uncheck Use of TLS for Authentication >> Ldap server:ldap://<hostname>.<domainname>:389 >> Ldap Base Dn:OU=<>,OU=<>,OU=<>,DC=<>,DC=<>,DC=<>,DC=<> >> >> when I login to the RB, with Standard ldap account I got below error >> >> "Please enter a correct username and password. Note that both fields may >> be case-sensitive." >> >> apache error log throws "WARNING:root:LDAP error: {'info': >> 'error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify >> failed (unable to get local issuer certificate)', 'desc': 'Connect error'}" >> >> created ldapserver.crt file by running command "openssl s_client >> -showcerts -connect ldap.yourdomain.com:636" >> >> added below lines in accounts\backends.py >> ldapo.set_option(ldap.OPT_X_TLS_NEWCTX, 0) >> ldap.set_option(ldap.OPT_X_TLS_CACERTFILE, >> 'C:\Bitnami\reviewboardpowerpack-2.5.7-2\apps\ldapserver.crt') >> still I am facing the same error ... any help is appreciated. >> >> -- >> Supercharge your Review Board with Power Pack: >> https://www.reviewboard.org/powerpack/ >> Want us to host Review Board for you? Check out RBCommons: >> https://rbcommons.com/ >> Happy user? Let us know! https://www.reviewboard.org/users/ >> --- >> You received this message because you are subscribed to the Google Groups >> "reviewboard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to reviewboard...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > -- > -- > Christian Hammond > President/CEO of Beanbag <https://www.beanbaginc.com/> > Makers of Review Board <https://www.reviewboard.org/> > -- Supercharge your Review Board with Power Pack: https://www.reviewboard.org/powerpack/ Want us to host Review Board for you? Check out RBCommons: https://rbcommons.com/ Happy user? Let us know! https://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to reviewboard+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.