#include <arpa/inet.h>#include <errno.h>#include <grp.h>#include <inttypes.h>#include <pwd.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/types.h>#include <atalk/afp.h>#include <atalk/ldapconfig.h>#include <atalk/logger.h>#include <atalk/util.h>#include <atalk/uuid.h>#include "aclldap.h"#include "cache.h"Functions | |
| void | localuuid_from_id (unsigned char *buf, uuidtype_t type, unsigned int id) |
| void | uuid_string2bin (const char *uuidstring, unsigned char *uuid) |
| convert ascii string that can include dashes to binary uuid. | |
| const char * | uuid_bin2string (const unsigned char *uuid) |
| Convert 16 byte binary uuid to neat ascii represantation including dashes. | |
| int | getuuidfromname (const char *name, uuidtype_t type, unsigned char *uuid) |
| int | getnamefromuuid (const uuidp_t uuidp, char **name, uuidtype_t *type) |
Variables | |
| char * | uuidtype [] = {"", "USER", "GROUP", "LOCAL"} |
| static unsigned char | local_group_uuid [] |
| static unsigned char | local_user_uuid [] |
| int getnamefromuuid | ( | const uuidp_t | uuidp, |
| char ** | name, | ||
| uuidtype_t * | type ) |
| uuidp | pointer to a uuid |
| name | returns allocated buffer from ldap_getnamefromuuid |
| type | returns USER, GROUP or LOCAL |
| int getuuidfromname | ( | const char * | name, |
| uuidtype_t | type, | ||
| unsigned char * | uuid ) |
| name | give me his name |
| type | and type (UUID_USER or UUID_GROUP) |
| uuid | pointer to uuid_t storage that the caller must provide |
| void localuuid_from_id | ( | unsigned char * | buf, |
| uuidtype_t | type, | ||
| unsigned int | id ) |
| const char * uuid_bin2string | ( | const unsigned char * | uuid | ) |
Convert 16 byte binary uuid to neat ascii represantation including dashes.
Use defined or default ascii mask for dash placement
| void uuid_string2bin | ( | const char * | uuidstring, |
| unsigned char * | uuid ) |
convert ascii string that can include dashes to binary uuid.
|
static |
|
static |
| char* uuidtype[] = {"", "USER", "GROUP", "LOCAL"} |