X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=servers%2Fslurpd%2Fslurp.h;h=9a125c63f71f80a2ffeeb7399c8c20bd6c1825d6;hb=59d4b38a7c9247d13bbff43c73c253929e348fdf;hp=96ca977127e7dcd867a58ea21a9a212d1bed2488;hpb=3c598e89fb34a892d369a138daa8c3314294493c;p=openldap diff --git a/servers/slurpd/slurp.h b/servers/slurpd/slurp.h index 96ca977127..9a125c63f7 100644 --- a/servers/slurpd/slurp.h +++ b/servers/slurpd/slurp.h @@ -1,7 +1,7 @@ /* $OpenLDAP$ */ /* This work is part of OpenLDAP Software . * - * Copyright 1998-2004 The OpenLDAP Foundation. + * Copyright 1998-2007 The OpenLDAP Foundation. * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -58,8 +58,24 @@ /* should be moved to portable.h.nt */ #define ftruncate(a,b) _chsize(a,b) #define truncate(a,b) _lclose( _lcreat(a, 0)) +#define mkdir(a,b) mkdir(a) #define S_IRGRP 0 #define S_IWGRP 0 +#ifndef F_OK +#define F_OK 0 +#endif +#ifndef W_OK +#define W_OK 2 +#endif +#ifndef R_OK +#define R_OK 4 +#endif +#ifndef S_IRUSR +#define S_IRUSR S_IREAD +#endif +#ifndef S_IWUSR +#define S_IWUSR S_IWRITE +#endif #endif #undef SERVICE_NAME @@ -140,14 +156,12 @@ #define SUFFIXSTR "suffix" #define BINDDNSTR "binddn" #define BINDMETHSTR "bindmethod" -#define KERBEROSSTR "kerberos" #define SIMPLESTR "simple" #define SASLSTR "sasl" #define CREDSTR "credentials" #define OLDAUTHCSTR "bindprincipal" #define AUTHCSTR "authcID" #define AUTHZSTR "authzID" -#define SRVTABSTR "srvtab" #define SASLMECHSTR "saslmech" #define REALMSTR "realm" #define SECPROPSSTR "secprops" @@ -163,7 +177,6 @@ #define BIND_ERR_OPEN 2 #define BIND_ERR_BAD_ATYPE 3 #define BIND_ERR_SIMPLE_FAILED 4 -#define BIND_ERR_KERBEROS_FAILED 5 #define BIND_ERR_BADRI 6 #define BIND_ERR_VERSION 7 #define BIND_ERR_REFERRALS 8 @@ -225,14 +238,13 @@ struct ri { char *ri_uri; /* e.g. "ldaps://ldap-1.example.com:636" */ LDAP *ri_ldp; /* LDAP struct for this replica */ int ri_tls; /* TLS: 0=no, 1=yes, 2=critical */ - int ri_bind_method; /* AUTH_SIMPLE or AUTH_KERBEROS */ + int ri_bind_method; /* AUTH_SIMPLE or AUTH_SASL */ char *ri_bind_dn; /* DN to bind as when replicating */ char *ri_password; /* Password for any method */ char *ri_secprops; /* SASL security properties */ char *ri_realm; /* realm for any mechanism */ char *ri_authcId; /* authentication ID for any mechanism */ char *ri_authzId; /* authorization ID for any mechanism */ - char *ri_srvtab; /* srvtab file for kerberos bind */ char *ri_saslmech; /* SASL mechanism to use */ struct re *ri_curr; /* current repl entry being processed */ struct stel *ri_stel; /* pointer to Stel for this replica */