charset/tests: add more str[n]casecmp_m() tests to demonstrate the bug
[Samba.git] / lib / afs / afs_funcs.h
blob95e916b47a2277da45e335c2ef50438f655cabb8
1 /*
2 * Unix SMB/CIFS implementation.
3 * Generate AFS tickets
4 * Copyright (C) Volker Lendecke 2003
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 #ifndef LIB_AFS_AFS_FUNCS_H
21 #define LIB_AFS_AFS_FUNCS_H 1
23 char *afs_createtoken_str(const char *username, const char *cell);
26 This routine takes a radical approach completely bypassing the
27 Kerberos idea of security and using AFS simply as an intelligent
28 file backend. Samba has persuaded itself somehow that the user is
29 actually correctly identified and then we create a ticket that the
30 AFS server hopefully accepts using its KeyFile that the admin has
31 kindly stored to our secrets.tdb.
33 Thanks to the book "Network Security -- PRIVATE Communication in a
34 PUBLIC World" by Charlie Kaufman, Radia Perlman and Mike Speciner
35 Kerberos 4 tickets are not really hard to construct.
37 For the comments "Alice" is the User to be auth'ed, and "Bob" is the
38 AFS server. */
40 bool afs_login(connection_struct *conn);
42 #endif