]> git.ipfire.org Git - thirdparty/samba.git/commit
lib:cmdline: Check if we have a valid default ccache
authorAndreas Schneider <asn@samba.org>
Fri, 25 Apr 2025 15:32:16 +0000 (17:32 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Tue, 5 Aug 2025 10:49:34 +0000 (10:49 +0000)
commitb5fe30ef6d128863417cb799a0fa336dde9f5ba4
tree21ef4f716c5af11f9517a36df6bb37c8131f481d
parent7a4c8d6f84cabfe9d27fcb795a4030de93a1b8cb
lib:cmdline: Check if we have a valid default ccache

If you don't specify anything, and we have a valid ccache then try to
use it!

> smbclient -L //samba1.earth.milkyway.site
Anonymous login successful

        Sharename       Type      Comment
        ---------       ----      -------
        print$          Disk      Printer Drivers
        IPC$            IPC       IPC Service (Samba 4.22.1)
SMB1 disabled -- no workgroup available

In case the user specifies a principal, it will ask for a password:

> bin/smbclient -L //samba1.earth.milkyway.site -Ualice1@EARTH.MILKYWAY.SITE
Password for [alice1@EARTH.MILKYWAY.SITE]:

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
lib/cmdline/cmdline.c