1
0
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:
Andrew Tridgell
2001-10-11 07:42:52 +00:00
parent 76745313b1
commit 81f56139b6
19 changed files with 2306 additions and 980 deletions

View File

@ -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;
}