LISTSERV mailing list manager LISTSERV 16.5

Help for XROOTD-L Archives


XROOTD-L Archives

XROOTD-L Archives


XROOTD-L@LISTSERV.SLAC.STANFORD.EDU


View:

Message:

[

First

|

Previous

|

Next

|

Last

]

By Topic:

[

First

|

Previous

|

Next

|

Last

]

By Author:

[

First

|

Previous

|

Next

|

Last

]

Font:

Proportional Font

LISTSERV Archives

LISTSERV Archives

XROOTD-L Home

XROOTD-L Home

XROOTD-L  March 2009

XROOTD-L March 2009

Subject:

Re: Authentication using htpasswd files

From:

Brian Bockelman <[log in to unmask]>

Date:

18 Mar 2009 11:44:41 -0500Wed, 18 Mar 2009 11:44:41 -0500

Content-Type:

text/plain

Parts/Attachments:

Parts/Attachments

text/plain (220 lines)

Hey Fabrizio,

I went back with our folks, and we've come up with an acceptable  
solution (I don't really want to force all our users out there to get  
a new module!)

Basically, they log into a web interface using the current auth scheme  
and it generates a one-time password for them.  They are given the one- 
time password and the first time they use it, they change it.

HOWEVER, it appears that users added with xrdpwdadmin can't  
effectively use xrootd until the daemon is restarted.

Here's the command I use, for example:

xrdpwdadmin add bbockelmnocern3 -force -dontask

I then take the generated password and try to use it.  The server logs  
are below.  The user output look like this (gDebug=5, removing un- 
interesting stuff):

Password for [log in to unmask]:cmsfilemover:
Info in <TXNetFile::Open>: remote file could not be open
Info in <TXNetFile::CreateXClient>: remote file could not be open
Error in <TXNetFile::CreateXClient>: open attempt failed on root:[log in to unmask] 
//cmsfs/lfns/store/relval/CMSSW_2_2_1/RelValTTbar/GEN-SIM-RECO/ 
STARTUP_V7_LowLumiPileUp_v1/0004/EC41ED67-E5C6- 
DD11-97A2-000423D9989E.root

If I then restart the xrootd server, things work.  In fact, after  
restarting the xrootd server, the client no longer asks me for the  
temporary password (I assume it saved it to the client's cache?) and  
just asks me to change the password.

It appears that the xrootd server is claiming in the logs it has  
reloaded the cached authentication file, but this reloading failed to  
work.

Brian

First attempt:

090318 11:39:00 001 XrdInet: Accepted connection from [log in to unmask]
090318 11:39:00 20699 XrdSched: running ?:[log in to unmask] inq=0
090318 11:39:00 20699 XrdProtocol: matched protocol xrootd
090318 11:39:00 20699 ?:[log in to unmask] XrdPoll: FD 27 attached to  
poller 0; num=1
090318 11:39:00 20699 ?:[log in to unmask] XrootdProtocol: 0100 req=3007  
dlen=0
090318 11:39:00 20699 sec_getParms: red.unl.edu sectoken=&P=pwd,v: 
10100,id:cmsfilemover,c:ssl
090318 11:39:00 20699 bbockelmn.4519:[log in to unmask] XrootdResponse:  
0100 sending 52 data bytes; status=0
090318 11:39:00 20699 bbockelmn.4519:[log in to unmask] XrootdProtocol:  
0100 req=3000 dlen=254
090318 11:39:00 20699 secpwd_XrdSecProtocolpwd: constructing: host:  
red.unl.edu
090318 11:39:00 20699 secpwd_XrdSecProtocolpwd: p: pwd, plen: 4
090318 11:39:00 20699 secpwd_XrdSecProtocolpwd: mode: server
090318 11:39:00 20699 secpwd_XrdSecProtocolpwd: object created: v..
090318 11:39:00 20699 secpwd_Authenticate: handshaking ID: bbockelmn. 
4519:[log in to unmask]
090318 11:39:00 20699 secpwd_ParseCrypto: parsing list: ssl
090318 11:39:00 20699 crypto_Factory::GetCryptoFactory: ssl crypto  
factory object already loaded (0x7f7faf664960)
090318 11:39:00 20699 secpwd_Authenticate: version run by client: 10100
090318 11:39:00 20699 secpwd_CheckRtag: Nothing to check
090318 11:39:00 20699 secpwd_CheckTimeStamp: Nothing to do
090318 11:39:00 20699 sut_Rndm::GetString: enter: len: 8 (type: Crypt)
090318 11:39:00 20699 sut_Rndm::GetString: got: V9JGOZzx
090318 11:39:00 20699 bbockelmn.4519:[log in to unmask] XrootdProtocol:  
0100 more auth requested; sz=103
090318 11:39:00 20699 bbockelmn.4519:[log in to unmask] XrootdResponse:  
0100 sending 103 data bytes; status=4002
090318 11:39:03 20699 bbockelmn.4519:[log in to unmask] XrootdProtocol:  
0100 request timeout; read 0 of 24 bytes
090318 11:39:03 20699 XrdPoll: Poller 0 enabled bbockelmn.4519:[log in to unmask]
090318 11:39:11 20699 XrdSched: running bbockelmn.4519:[log in to unmask]  
inq=0
090318 11:39:11 20699 bbockelmn.4519:[log in to unmask] XrootdProtocol:  
0100 req=3000 dlen=167
090318 11:39:11 20699 secpwd_Authenticate: handshaking ID: bbockelmn. 
4519:[log in to unmask]
090318 11:39:11 20699 secpwd_ParseCrypto: parsing list: ssl
090318 11:39:11 20699 crypto_Factory::GetCryptoFactory: ssl crypto  
factory object already loaded (0x7f7faf664960)
090318 11:39:11 20699 secpwd_Authenticate: version run by client: 10100
090318 11:39:11 20699 secpwd_CheckRtag: Random tag successfully checked
090318 11:39:11 20699 secpwd_CheckTimeStamp: Nothing to do
090318 11:39:11 20699 secpwd_QueryUser: Enter: bbockelmnocern3
090318 11:39:11 20699 sut_Cache::Rehash: Hash table updated (found 11  
active entries)
090318 11:39:11 20699 sut_Cache::Refresh: Cache refreshed from file / 
uscms/home/bbockelm/.xrd/pwdadmin (0 entries updated)
090318 11:39:11 20699 secpwd_ErrF: Secpwd: wrong credentials: : user :  
bbockelmnocern3: kXPC_normal
090318 11:39:11 20699 XrootdXeq: User authentication failed; Secpwd:  
wrong credentials: : user : bbockelmnocern3: kXPC_normal
090318 11:39:11 20699 bbockelmn.4519:[log in to unmask] XrootdResponse:  
0100 sending err 3010: Secpwd: wrong credentials: : user :  
bbockelmnocern3: kXPC_normal
090318 11:39:11 20699 bbockelmn.4519:[log in to unmask] XrootdProtocol:  
0100 req=3010 dlen=136
090318 11:39:11 20699 bbockelmn.4519:[log in to unmask] XrootdResponse:  
0100 sending err 3006: Invalid request; user not authenticated
090318 11:39:11 20699 XrootdXeq: bbockelmn.4519:[log in to unmask] disc  
0:00:11
090318 11:39:11 20699 bbockelmn.4519:[log in to unmask] XrdPoll: FD 27  
detached from poller 0; num=0

Second attempt:

090318 11:40:59 001 XrdInet: Accepted connection from [log in to unmask]
090318 11:40:59 20753 XrdSched: running ?:[log in to unmask] inq=0
090318 11:40:59 20753 XrdProtocol: matched protocol xrootd
090318 11:40:59 20753 ?:[log in to unmask] XrdPoll: FD 26 attached to  
poller 0; num=1
090318 11:40:59 20753 ?:[log in to unmask] XrootdProtocol: 0100 req=3007  
dlen=0
090318 11:40:59 20753 sec_getParms: red.unl.edu sectoken=&P=pwd,v: 
10100,id:cmsfilemover,c:ssl
090318 11:40:59 20753 bbockelmn.2466:[log in to unmask] XrootdResponse:  
0100 sending 52 data bytes; status=0
090318 11:40:59 20753 bbockelmn.2466:[log in to unmask] XrootdProtocol:  
0100 req=3000 dlen=254
090318 11:40:59 20753 secpwd_XrdSecProtocolpwd: constructing: host:  
red.unl.edu
090318 11:40:59 20753 secpwd_XrdSecProtocolpwd: p: pwd, plen: 4
090318 11:40:59 20753 secpwd_XrdSecProtocolpwd: mode: server
090318 11:40:59 20753 secpwd_XrdSecProtocolpwd: object created: v..
090318 11:40:59 20753 secpwd_Authenticate: handshaking ID: bbockelmn. 
2466:[log in to unmask]
090318 11:40:59 20753 secpwd_ParseCrypto: parsing list: ssl
090318 11:40:59 20753 crypto_Factory::GetCryptoFactory: ssl crypto  
factory object already loaded (0x7fe2fb8a8960)
090318 11:40:59 20753 secpwd_Authenticate: version run by client: 10100
090318 11:40:59 20753 secpwd_CheckRtag: Nothing to check
090318 11:40:59 20753 secpwd_CheckTimeStamp: Nothing to do
090318 11:40:59 20753 sut_Rndm::GetString: enter: len: 8 (type: Crypt)
090318 11:40:59 20753 sut_Rndm::Init: taking seed from /dev/urandom
090318 11:40:59 20753 sut_Rndm::GetString: got: .8lrX3bS
090318 11:40:59 20753 bbockelmn.2466:[log in to unmask] XrootdProtocol:  
0100 more auth requested; sz=103
090318 11:40:59 20753 bbockelmn.2466:[log in to unmask] XrootdResponse:  
0100 sending 103 data bytes; status=4002
090318 11:40:59 20753 bbockelmn.2466:[log in to unmask] XrootdProtocol:  
0100 req=3000 dlen=167
090318 11:40:59 20753 secpwd_Authenticate: handshaking ID: bbockelmn. 
2466:[log in to unmask]
090318 11:40:59 20753 secpwd_ParseCrypto: parsing list: ssl
090318 11:40:59 20753 crypto_Factory::GetCryptoFactory: ssl crypto  
factory object already loaded (0x7fe2fb8a8960)
090318 11:40:59 20753 secpwd_Authenticate: version run by client: 10100
090318 11:40:59 20753 secpwd_CheckRtag: Random tag successfully checked
090318 11:40:59 20753 secpwd_CheckTimeStamp: Nothing to do
090318 11:40:59 20753 secpwd_QueryUser: Enter: bbockelmnocern3
090318 11:40:59 20753 sut_Cache::Refresh: cached information for file / 
uscms/home/bbockelm/.xrd/pwdadmin is up-to-date
090318 11:41:00 20753 secpwd_ExportCreds: File (template) undefined -  
do nothing
090318 11:41:00 20753 secpwd_Authenticate: WARNING: some problem  
exporting creds to file; template is :
090318 11:41:00 20753 sut_Rndm::GetString: enter: len: 8 (type: Crypt)
090318 11:41:00 20753 sut_Rndm::GetString: got: 8SVtIe9a
090318 11:41:00 20753 bbockelmn.2466:[log in to unmask] XrootdProtocol:  
0100 more auth requested; sz=127
090318 11:41:00 20753 bbockelmn.2466:[log in to unmask] XrootdResponse:  
0100 sending 127 data bytes; status=4002
090318 11:41:03 20753 bbockelmn.2466:[log in to unmask] XrootdProtocol:  
0100 request timeout; read 0 of 24 bytes
090318 11:41:03 20753 XrdPoll: Poller 0 enabled bbockelmn.2466:[log in to unmask]
090318 11:41:19 20753 XrdSched: running bbockelmn.2466:[log in to unmask]  
inq=0
090318 11:41:19 20753 bbockelmn.2466:[log in to unmask] XrootdProtocol:  
0100 req=3000 dlen=143
090318 11:41:19 20753 secpwd_Authenticate: handshaking ID: bbockelmn. 
2466:[log in to unmask]
090318 11:41:19 20753 secpwd_ParseCrypto: parsing list: ssl
090318 11:41:19 20753 crypto_Factory::GetCryptoFactory: ssl crypto  
factory object already loaded (0x7fe2fb8a8960)
090318 11:41:19 20753 secpwd_Authenticate: version run by client: 10100
090318 11:41:19 20753 secpwd_CheckRtag: Random tag successfully checked
090318 11:41:19 20753 secpwd_CheckTimeStamp: Nothing to do
090318 11:41:19 20753 sut_Rndm::GetBuffer: enter: len: 8
090318 11:41:19 20753 secpwd_SaveCreds: Entry for tag:  
bbockelmnocern3_1 updated in cache
090318 11:41:19 20753 sut_Cache::Flush: Cache flushed to file /uscms/ 
home/bbockelm/.xrd/pwdadmin (1 entries updated / written)
090318 11:41:19 20753 bbockelmn.2466:[log in to unmask] XrootdResponse:  
0100 sending OK
090318 11:41:19 20753 XrootdXeq: bbockelmn.2466:[log in to unmask] login  
as bbockelmnocern3
090318 11:41:19 20753 bbockelmn.2466:[log in to unmask] XrootdProtocol:  
0100 req=3010 dlen=136
090318 11:41:19 20753 bbockelmn.2466:[log in to unmask] XrootdProtocol:  
0100 open rt /cmsfs/lfns/store/relval/CMSSW_2_2_1/RelValTTbar/GEN-SIM- 
RECO/STARTUP_V7_LowLumiPileUp_v1/0004/EC41ED67-E5C6- 
DD11-97A2-000423D9989E.root

On Mar 10, 2009, at 9:26 AM, Fabrizio Furano wrote:

> Hi,
>
> I guess that this needs a new XrdSec plugin to be written. Probably  
> the secunix one could be a good starting point.
>
> Fabrizio
>
>
> Brian Bockelman ha scritto:
>> Hey Xrootd folks (hope I ended up on the right list),
>> I'd like to hook xrootd into our local-site authentication  
>> methods.  We currently keep all our user/passwords in a htpasswd  
>> file, as generated by apache.  What's the best way to have the  
>> server read the data from that file and use it for authentication?
>> Brian



Top of Message | Previous Page | Permalink

Advanced Options


Options

Log In

Log In

Get Password

Get Password


Search Archives

Search Archives


Subscribe or Unsubscribe

Subscribe or Unsubscribe


Archives

June 2024
May 2024
April 2024
March 2024
February 2024
January 2024
December 2023
November 2023
October 2023
September 2023
August 2023
July 2023
June 2023
May 2023
April 2023
March 2023
February 2023
January 2023
December 2022
October 2022
September 2022
August 2022
July 2022
June 2022
May 2022
April 2022
March 2022
February 2022
January 2022
December 2021
November 2021
October 2021
September 2021
August 2021
July 2021
June 2021
May 2021
April 2021
March 2021
February 2021
January 2021
December 2020
November 2020
October 2020
September 2020
August 2020
July 2020
June 2020
May 2020
April 2020
March 2020
February 2020
January 2020
December 2019
November 2019
October 2019
September 2019
August 2019
July 2019
June 2019
May 2019
April 2019
March 2019
February 2019
January 2019
December 2018
November 2018
October 2018
September 2018
August 2018
July 2018
June 2018
May 2018
April 2018
March 2018
February 2018
January 2018
December 2017
November 2017
October 2017
September 2017
August 2017
July 2017
June 2017
May 2017
April 2017
March 2017
February 2017
January 2017
December 2016
November 2016
October 2016
September 2016
August 2016
July 2016
May 2016
April 2016
March 2016
February 2016
January 2016
December 2015
November 2015
October 2015
September 2015
August 2015
July 2015
June 2015
May 2015
April 2015
March 2015
February 2015
January 2015
December 2014
November 2014
October 2014
September 2014
August 2014
July 2014
June 2014
May 2014
April 2014
March 2014
February 2014
January 2014
December 2013
November 2013
October 2013
September 2013
August 2013
July 2013
June 2013
May 2013
April 2013
March 2013
February 2013
January 2013
December 2012
November 2012
October 2012
September 2012
August 2012
July 2012
June 2012
May 2012
April 2012
March 2012
February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
October 2010
September 2010
August 2010
July 2010
June 2010
May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
July 2009
June 2009
May 2009
April 2009
March 2009
January 2009
December 2008
September 2008
August 2008
July 2008
June 2008
May 2008
April 2008
March 2008
February 2008
January 2008
December 2007
November 2007
October 2007
September 2007
August 2007
July 2007
June 2007
May 2007
April 2007
March 2007
February 2007
January 2007
December 2006
November 2006
October 2006
September 2006
August 2006
July 2006
June 2006
May 2006
April 2006
March 2006
February 2006
January 2006
December 2005
November 2005
October 2005
September 2005
August 2005
July 2005
June 2005
May 2005
April 2005
March 2005
February 2005
January 2005
December 2004
November 2004
October 2004
September 2004
August 2004

ATOM RSS1 RSS2



LISTSERV.SLAC.STANFORD.EDU

Secured by F-Secure Anti-Virus CataList Email List Search Powered by the LISTSERV Email List Manager

Privacy Notice, Security Notice and Terms of Use