]> arthur.barton.de Git - netatalk.git/blob - libatalk/acl/aclldap.h
Enhanced machine type
[netatalk.git] / libatalk / acl / aclldap.h
1 /*
2    $Id: aclldap.h,v 1.1 2009-02-02 11:55:01 franklahm Exp $
3    Copyright (c) 2008,2009 Frank Lahm <franklahm@gmail.com>
4
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2 of the License, or
8    (at your option) any later version.
9  
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14  */
15
16 #ifndef ACLLDAP_H
17 #define ACLLDAP_H
18
19 #include <atalk/uuid.h>         /* just for uuidtype_t*/
20
21 /******************************************************** 
22  * Interface
23  ********************************************************/
24
25 /* 
26  *   name: give me his name
27  *   type: and type of USER or GROUP
28  *   uuid_string: returns pointer to allocated string
29  * returns 0 on success !=0 on errror  
30  */
31 extern int ldap_getuuidfromname( const char *name, uuidtype_t type, char **uuid_string);
32
33 /* 
34  *   uuipd: give me his uuid
35  *   name:  returns pointer to allocated string
36  *   type:  returns type: USER or GROUP
37  * returns 0 on success !=0 on errror
38  */
39 extern int ldap_getnamefromuuid( uuidp_t uuidp, char **name, uuidtype_t *type); 
40
41 #endif /* ACLLDAP_H */