[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #DVK-211460]: opendap access with username and password included in URL



Fixed by github pull request https://github.com/Unidata/netcdf-c/pull/1312

> Denis, that does it. So we have working code again and can help our
> partners to get the thredds-access working.
> 
> I really appreciate that you did it that fast and even during the weekend!
> 
> Hope, you have a nice evening now.
> 
> Many thanks again and kind regards,
> 
> Martin
> 
> 
> Am 09.02.2019 um 20:56 schrieb Unidata netCDF Support:
> > Turns out it was a typo. If you want to do an immediate fix,
> > then do this to your netcdf-c source tree.
> > 1. edit file libdispatch/dauth.c
> > 2. at about line 163, you should see these two lines:
> >         setauthfield(auth,"HTTP.USERNAME",user);
> >         setauthfield(auth,"HTTP.PASSWORD",pwd);
> > 3. Change
> >          HTTP.USERNAME -> HTTP.CREDENTIALS.USERNAME
> >          HTTP.PASSWORD-> HTTP.CREDENTIALS.PASSWORD
> > In the meantime, I will submit a fix.
> >
> >> Ok, I am working on it.
> >> If you need a fix immediately, then you can use .daprc and .netrc files.
> >>
> >>> I have made a simpler URL for testing ...
> >>>
> >>> http://uni:address@hidden/thredds/dodsC/genus/IOW-THREDDS-unidatatest.nc
> >>>
> >>> Best,
> >>>
> >>> Martin
> >>>
> >>>
> >>> Am 07.02.2019 um 20:24 schrieb Unidata netCDF Support:
> >>>> This should be supported, but we have had difficulties standing
> >>>> up a server to routinely test this. Let me do some testing to see
> >>>> what is going on.
> >>>>
> >>>>> is the method obsolet to  include user information to the URL-path to
> >>>>> password protected data sets?
> >>>>>
> >>>>> I would like to open a netcdf-file hosted on a thredds. The fileset is
> >>>>> password protected. This works well with all software linked to
> >>>>> netcdf-4.4.1.1, but not for software linked with a later netcdf library.
> >>>>>
> >>>>> For example ncdump (4.4.1.1)
> >>>>>
> >>>>> ncdump -h
> >>>>> https://username:address@hidden/thredds/dodsC/files/e/ds630.0/e5.oper.fc.sfc.accumu/200301/e5.oper.fc.sfc.accumu.128_228_tp.regn320sc.2003010106_2003011612.nc
> >>>>>
> >>>>>
> >>>>> does what it should do.
> >>>>>
> >>>>> ncdump (4.6.0, 4.6.1, 4.6.3-development)
> >>>>>
> >>>>> syntax error, unexpected WORD_WORD, expecting SCAN_ATTR or SCAN_DATASET
> >>>>> or SCAN_ERROR
> >>>>>
> >>>>> .... a lot of messages from apache and finally
> >>>>>
> >>>>> ncdump:
> >>>>> https://username:address@hidden/thredds/dodsC/files/e/ds630.0/e5.oper.fc.sfc.accumu/200301/e5.oper.fc.sfc.accumu.128_228_tp.regn320sc.2003010106_2003011612.nc:
> >>>>> NetCDF: Authorization failure
> >>>>>
> >>>>> Non-protected data sets can be accessed. The 4.6.3-development library
> >>>>> passes through all checks when build.
> >>>>>
> >>>>> I checked the mail archives and found the other method based on .netrc
> >>>>> and .dodrc. This method works indeed also for the more recent netcdf
> >>>>> libraries.
> >>>>>
> >>>>> For several reasons it is more convenient in some applications to have
> >>>>> all information included in the URL. It would be nice to have it working
> >>>>> again.
> >>>>>
> >>>>> I am compiling netcdf by myself. So, I am able to run tests.
> >>>>>
> >>>>> Best,
> >>>>>
> >>>>> Martin Schmidt
> >>>>>
> >>>>>
> >>>>>
> >>>> =Dennis Heimbigner
> >>>>     Unidata
> >>>>
> >>>>
> >>>> Ticket Details
> >>>> ===================
> >>>> Ticket ID: DVK-211460
> >>>> Department: Support netCDF
> >>>> Priority: Normal
> >>>> Status: Open
> >>>> ===================
> >>>> NOTE: All email exchanges with Unidata User Support are recorded in the 
> >>>> Unidata inquiry tracking system and then made publicly available through 
> >>>> the web.  If you do not want to have your interactions made available in 
> >>>> this way, you must let us know in each email you send to us.
> >>>>
> >>>>
> >>>
> >> =Dennis Heimbigner
> >> Unidata
> >>
> > =Dennis Heimbigner
> >    Unidata
> >
> >
> > Ticket Details
> > ===================
> > Ticket ID: DVK-211460
> > Department: Support netCDF
> > Priority: Normal
> > Status: Open
> > ===================
> > NOTE: All email exchanges with Unidata User Support are recorded in the 
> > Unidata inquiry tracking system and then made publicly available through 
> > the web.  If you do not want to have your interactions made available in 
> > this way, you must let us know in each email you send to us.
> >
> >
> 
> 

=Dennis Heimbigner
  Unidata


Ticket Details
===================
Ticket ID: DVK-211460
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.