waffle

user and group backend daemon
git clone git://git.2f30.org/waffle
Log | Files | Refs | LICENSE

proto.h (727B)


      1 /* See LICENSE file for copyright and license details. */
      2 #include <stdint.h>
      3 
      4 enum {
      5 	NSCDVERSION = 2
      6 };
      7 
      8 enum {
      9 	NSCDTIMEOUT = 200 /* in ms */
     10 };
     11 
     12 enum {
     13 	NSCDMAXKEYLEN = 1024
     14 };
     15 
     16 enum {
     17 	GETPWBYNAME = 0,
     18 	GETPWBYUID = 1,
     19 
     20 	GETGRBYNAME = 2,
     21 	GETGRBYGID = 3,
     22 
     23 	INITGROUPS = 15,
     24 };
     25 
     26 struct nscdreq {
     27 	int32_t version;
     28 	int type;
     29 	int32_t keylen;
     30 };
     31 
     32 struct nscdpasswd {
     33 	int32_t version;
     34 	int32_t found;
     35 	int32_t namelen;
     36 	int32_t passwdlen;
     37 	int32_t uid;
     38 	int32_t gid;
     39 	int32_t gecoslen;
     40 	int32_t dirlen;
     41 	int32_t shelllen;
     42 };
     43 
     44 struct nscdgrp {
     45 	int32_t version;
     46 	int32_t found;
     47 	int32_t namelen;
     48 	int32_t passwdlen;
     49 	int32_t gid;
     50 	int32_t memcnt;
     51 };
     52 
     53 struct nscdinitgrp {
     54 	int32_t version;
     55 	int32_t found;
     56 	int32_t ngrps;
     57 };