Re: [PATCH 2/2, 2nd attempt] samples/auto.smb: add logic to obtain credentials

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

 



On 02/11/2013 03:16 AM, Ian Kent wrote:

> Yeah, I guess, since auto.smb is essentially an example for people to
> work from it's a useful addition to demonstrate usage.

Some distributions simply install this file as /etc/auto.smb, so it
actually serves as a template for many installations.

>> +if [ -f "$creds" ]; then
>> +    opts="$opts"',uid=$UID,gid=$GID,credentials='"$creds"
> 
> So we expect that $UID and $GID will be translated during the map entry
> parse, right?

Yes, that's standard functionality. auto.smb needs the UID only for
getting the list of shares with smbclient -L.

>> +        export KRB5CCNAME=$cache 
> 
> Mmm ... does setting KRB5CCNAME actually do anything?

Yes, it is used by smbclient further down. It tells smbclient where to
look for the cache. Without that line, the script wouldn't work.

Martin

-- 
Dr. Martin Wilck
PRIMERGY System Software Engineer
x86 Server Engineering

FUJITSU
Fujitsu Technology Solutions GmbH
Heinz-Nixdorf-Ring 1
33106 Paderborn, Germany
Phone:			++49 5251 525 2796
Fax:			++49 5251 525 2820
Email:			martin.wilck@xxxxxxxxxxxxxx
Internet:		http://ts.fujitsu.com
Company Details:	http://ts.fujitsu.com/imprint
--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux