Re: LDAP Authentication Issues

2013-08-01 Thread Michael Pigott
Christian,
Thanks for your help.  Unfortunately I don't know Python at all, but 
I'll take a look when I get a chance.  If I figure it out, I'll let you 
know!

Mike

On Tuesday, July 30, 2013 7:49:28 PM UTC-4, Christian Hammond wrote:
>
> Hi Michael,
>
> I don't have any useful answer for you just yet, but I wanted to point out 
> that the version of backends.py you're looking out is very ancient. You'll 
> want to check the one on http://github.com/reviewboard/reviewboard/ in 
> order to help debug this.
>
> I'm not an LDAP expert so I'm not in a great position right now to tell 
> you what's wrong. It's possible our code is doing something wrong right 
> now. Particularly if you're getting that error, which at the very least we 
> should catch.
>
> Christian
>
>
> On Sunday, July 28, 2013, Michael Pigott wrote:
>
>> Hello,
>>  I'm having trouble with configuring ReviewBoard for LDAP.  I know 
>> I'm doing this correctly, because it works for my Subversion and Redmine 
>> instances.  I'm not expecting much out of this, because I've seen others 
>> have had LDAP authentication issues like mine and haven't had much luck 
>> either.
>>
>> None of my LDAP users authenticate.  I get varying issues with trying 
>> various configurations.  The best I can get is a connection, with an error 
>> in my reviewboard.log stating:
>>
>>  LDAP error: The specified object does not exist in the Directory or 
>> provided invalid credentials: uid=mpigott,dc=X,dc=org
>>
>> I have an OpenLDAP server running on the same machine as my Reviewboard 
>> instance.  It has an admin account of "cn=admin,dc=X,dc=org" with a 
>> password.  I don't have SASL set up, so it's just using the basic 
>> authentication.
>>
>> Server:
>> I have tried all of the following:
>>
>> ldap://localhost/
>> ldap://localhost:389/
>> ldap://localhost/DC=X,DC=org?uid  (to the unfamiliar, this is 
>> Apache's LDAP authentication URL)
>>
>> LDAP Base DN:
>>  dc=X,dc=org
>>  ou=people,dc=X,dc=org
>>
>> Given Name Attribute:
>>  givenName
>>
>> Surname Attribute:
>>  sn
>>
>> Full Name Attribute:
>>  cn
>>
>> E-mail Domain
>>  
>>  X.org
>>
>> E-mail LDAP Attribute
>>  mail
>>
>> User Mask:
>>  uid=%s => This gives me the error 
>> "LDAP error: The specified object does not exist in the Directory or 
>> provided invalid credentials: uid=mpigott,dc=X,dc=org"
>>  uid=%s,dc=X,dc=org=> Same error.
>>  (uid=%s)   => This gives me the error 
>> "LDAP error: {'info': 'invalid DN', 'desc': 'Invalid DN syntax'}", with a 
>> corresponding error in syslog stating either "invalid dn 
>> ((uid=mpigott),ou=people,dc=X,dc=org)" or "invalid dn 
>> ((uid=mpigott),dc=X,dc=org)", depending on the above configurations.
>>
>> After looking at backends.py ( 
>> http://reviewboard.googlecode.com/svn/trunk/reviewboard/accounts/backends.py),
>>  I was hoping the problem was that I did not set an anonymous username or 
>> password.  From the logic, it looked like I could try to set the following:
>>
>> Anonymous User:
>>   cn=admin,dc=X,dc=org
>>
>> Anonymous Password
>>   
>>
>> Except, this time I get the error:
>>
>> "An error while LDAP-authenticating: ValueError('need more than 1 value 
>> to unpack',)"
>>
>> That appears to be a Python error that occurs when a list of items is too 
>> short.  I noticed that the LDAP Anonymous Password never shows up on the 
>> admin screen; perhaps it is not saved?
>>
>> At any rate, any help is appreciated, though I'm about to give up and 
>> just use Registration authentication.
>>
>> Thanks,
>> Mike
>>
>> -- 
>> Want to help the Review Board project? Donate today at 
>> http://www.reviewboard.org/donate/
>> Happy user? Let us know at http://www.reviewboard.org/users/
>> -~--~~~~--~~--~--~---
>> To unsubscribe from this group, send email to 
>> reviewboard+unsubscr...@googlegroups.com
>> For more options, visit this group at 
>> http://groups.google.com/group/reviewboard?hl=en
>> --- 
>> 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/groups/opt_out.
>>  
>>  
>>
>
>
> -- 
> -- 
> Christian Hammond - chi...@chipx86.com 
> Review Board - http://www.reviewboard.org
> Beanbag, Inc. - http://www.beanbaginc.com
>
>

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
--- 
You received 

Re: Getting a 404 when ReviewBoard queries Gitweb for a particular revision

2013-08-01 Thread Chris Armstrong
That seems to have done it - thanks for the quick reply!


On Thu, Aug 1, 2013 at 6:30 PM, reviewboard  wrote:

> Does the following work?  (change hb to h)
>
>
> http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt;h=e4643b1cc6c8c05f17d4079f2d68d078bba96a4c
>
> ref: https://groups.google.com/d/msg/reviewboard/YmrjZyUsvX8/zqEEgtuznpMJ
>
>
> On Thu, August 1, 2013 9:18 pm, Chris Armstrong wrote:
> > Hi folks,
> >
> > Been struggling with ReviewBoard on this issue and would love some
> > guidance. I have a repository configured in RB as follows:
> >
> > Repository type: Git
> > Path: g...@git.ourdomain.com:reponame.git
> > Raw file URL
> > mask:
> > http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=
> ;hb=
> >
> > Now, when working locally, I am on master and make one commit that I'd
> like
> > to have code reviewed. I invoke rbt as follows:
> >
> > rbt post -g -d --target-groups=sysadmin
> > I get an error saying the file cannot be found (a file which has existed
> in
> > the repo far earlier than my recent commit -- I am just making a change
> to
> > it).
> >
> > The error in the RB server logs is:
> >
> > 2013-08-02 01:01:11,300 - INFO -  - Fetching file from
> >
> http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt;hb=e4643b1cc6c8c05f17d4079f2d68d078bba96a4c
> > 2013-08-02 01:01:11,441 - ERROR -  - 404
> >
> > Requesting the file directly from gitweb with
> >
> http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt;hb=e4643b1cc6c8c05f17d4079f2d68d078bba96a4c
> > also returns a 404 error. A bit of trial and error leads me to realize
> that
> > requesting the file without specifying the revision works just fine:
> > http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt
> >
> > Locally, git show e4643b1cc6c8c05f17d4079f2d68d078bba96a4c shows me the
> > file, and on a coworker's computer who does not have my latest commit
> that
> > I am having code reviewed (because I have not pushed it yet) this git
> show
> > also shows me the file. So, something has to be wrong with GitWeb I'd
> > imagine, but I have no idea what. Gitweb operates on the same repository
> > that we are pulling from locally, so that revision has to exist. Earlier
> > today I played around with the permissions on these directories in order
> to
> > have them appear in gitweb - is it possible that I messed something up
> > there?
> >
> > We have also tried specifying various other command-line options to rbt:
> > --parent and --tracking-branch to no avail. Can anyone shed some light on
> > what's going on?
> >
> > Thanks,
> > Chris
> >
> > --
> > Want to help the Review Board project? Donate today at
> > http://www.reviewboard.org/donate/
> > Happy user? Let us know at http://www.reviewboard.org/users/
> > -~--~~~~--~~--~--~---
> > To unsubscribe from this group, send email to
> > reviewboard+unsubscr...@googlegroups.com
> > For more options, visit this group at
> > http://groups.google.com/group/reviewboard?hl=en
> > ---
> > 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/groups/opt_out.
> >
> >
> >
>
>
> --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~--~~~~--~~--~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en
> ---
> 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/groups/opt_out.
>
>
>

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
--- 
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/groups/opt_out.




Re: Getting a 404 when ReviewBoard queries Gitweb for a particular revision

2013-08-01 Thread reviewboard
Does the following work?  (change hb to h)

http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt;h=e4643b1cc6c8c05f17d4079f2d68d078bba96a4c

ref: https://groups.google.com/d/msg/reviewboard/YmrjZyUsvX8/zqEEgtuznpMJ


On Thu, August 1, 2013 9:18 pm, Chris Armstrong wrote:
> Hi folks,
>
> Been struggling with ReviewBoard on this issue and would love some
> guidance. I have a repository configured in RB as follows:
>
> Repository type: Git
> Path: g...@git.ourdomain.com:reponame.git
> Raw file URL
> mask:
> http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=;hb=
>
> Now, when working locally, I am on master and make one commit that I'd like
> to have code reviewed. I invoke rbt as follows:
>
> rbt post -g -d --target-groups=sysadmin
> I get an error saying the file cannot be found (a file which has existed in
> the repo far earlier than my recent commit -- I am just making a change to
> it).
>
> The error in the RB server logs is:
>
> 2013-08-02 01:01:11,300 - INFO -  - Fetching file from
> http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt;hb=e4643b1cc6c8c05f17d4079f2d68d078bba96a4c
> 2013-08-02 01:01:11,441 - ERROR -  - 404
>
> Requesting the file directly from gitweb with
> http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt;hb=e4643b1cc6c8c05f17d4079f2d68d078bba96a4c
> also returns a 404 error. A bit of trial and error leads me to realize that
> requesting the file without specifying the revision works just fine:
> http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt
>
> Locally, git show e4643b1cc6c8c05f17d4079f2d68d078bba96a4c shows me the
> file, and on a coworker's computer who does not have my latest commit that
> I am having code reviewed (because I have not pushed it yet) this git show
> also shows me the file. So, something has to be wrong with GitWeb I'd
> imagine, but I have no idea what. Gitweb operates on the same repository
> that we are pulling from locally, so that revision has to exist. Earlier
> today I played around with the permissions on these directories in order to
> have them appear in gitweb - is it possible that I messed something up
> there?
>
> We have also tried specifying various other command-line options to rbt:
> --parent and --tracking-branch to no avail. Can anyone shed some light on
> what's going on?
>
> Thanks,
> Chris
>
> --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~--~~~~--~~--~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en
> ---
> 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/groups/opt_out.
>
>
>


-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
--- 
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/groups/opt_out.




Getting a 404 when ReviewBoard queries Gitweb for a particular revision

2013-08-01 Thread Chris Armstrong
Hi folks,

Been struggling with ReviewBoard on this issue and would love some 
guidance. I have a repository configured in RB as follows:

Repository type: Git
Path: g...@git.ourdomain.com:reponame.git
Raw file URL 
mask: 
http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=;hb=

Now, when working locally, I am on master and make one commit that I'd like 
to have code reviewed. I invoke rbt as follows:

rbt post -g -d --target-groups=sysadmin
I get an error saying the file cannot be found (a file which has existed in 
the repo far earlier than my recent commit -- I am just making a change to 
it).

The error in the RB server logs is:

2013-08-02 01:01:11,300 - INFO -  - Fetching file from 
http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt;hb=e4643b1cc6c8c05f17d4079f2d68d078bba96a4c
2013-08-02 01:01:11,441 - ERROR -  - 404

Requesting the file directly from gitweb with 
http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt;hb=e4643b1cc6c8c05f17d4079f2d68d078bba96a4c
 
also returns a 404 error. A bit of trial and error leads me to realize that 
requesting the file without specifying the revision works just fine: 
http://git.ourdomain.com/?p=reponame.git;a=blob_plain;f=path/to/file.txt

Locally, git show e4643b1cc6c8c05f17d4079f2d68d078bba96a4c shows me the 
file, and on a coworker's computer who does not have my latest commit that 
I am having code reviewed (because I have not pushed it yet) this git show 
also shows me the file. So, something has to be wrong with GitWeb I'd 
imagine, but I have no idea what. Gitweb operates on the same repository 
that we are pulling from locally, so that revision has to exist. Earlier 
today I played around with the permissions on these directories in order to 
have them appear in gitweb - is it possible that I messed something up 
there?

We have also tried specifying various other command-line options to rbt: 
--parent and --tracking-branch to no avail. Can anyone shed some light on 
what's going on?

Thanks,
Chris

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
--- 
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/groups/opt_out.