mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
initial kerberos/ADS/SPNEGO support in libsmb and smbclient. To
activate you need to:
- install krb5 libraries
- run configure
- build smbclient
- run kinit to get a TGT
- run smbclient with the -k option to choose kerberos auth
(This used to be commit d330575856
)
This commit is contained in:
@ -573,3 +573,20 @@ void file_lines_slashcont(char **lines)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
save a lump of data into a file. Mostly used for debugging
|
||||
*/
|
||||
BOOL file_save(const char *fname, void *packet, size_t length)
|
||||
{
|
||||
int fd;
|
||||
fd = open(fname, O_WRONLY|O_CREAT|O_TRUNC, 0644);
|
||||
if (fd == -1) {
|
||||
return False;
|
||||
}
|
||||
if (write(fd, packet, length) != length) {
|
||||
return False;
|
||||
}
|
||||
close(fd);
|
||||
return True;
|
||||
}
|
||||
|
Reference in New Issue
Block a user