ldb-samba: require pid match for cached ldb
[samba.git] / lib / afs / afs_funcs.h
1 /*
2  *  Unix SMB/CIFS implementation.
3  *  Generate AFS tickets
4  *  Copyright (C) Volker Lendecke 2003
5  *
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.
10  *
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.
15  *
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/>.
18  */
19
20 #ifndef LIB_AFS_AFS_FUNCS_H
21 #define LIB_AFS_AFS_FUNCS_H 1
22
23 char *afs_createtoken_str(const char *username, const char *cell);
24
25 /*
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.
32
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.
36
37   For the comments "Alice" is the User to be auth'ed, and "Bob" is the
38   AFS server.  */
39
40 bool afs_login(connection_struct *conn);
41
42 #endif