X-Git-Url: https://jfr.im/git/irc/evilnet/x3.git/blobdiff_plain/e166c31b0532e84a5d1a3e12db9ce8f3aca2a451..ef5e03051fd86d66844d61f3fcc1c7a82957826a:/src/x3ldap.h diff --git a/src/x3ldap.h b/src/x3ldap.h index 1c681f3..da5eac9 100644 --- a/src/x3ldap.h +++ b/src/x3ldap.h @@ -1,6 +1,39 @@ +/* x3ldap.h - LDAP functionality for x3, by Rubin + * Copyright 2002-2007 X3 Development Team + * + * This file is part of x3. + * + * x3 is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with srvx; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + */ + +#ifndef _x3ldap_h +#define _x3ldap_h + #include "nickserv.h" int ldap_do_init(); unsigned int ldap_check_auth(char *account, char *pass); +int ldap_do_add(const char *account, const char *password, const char *email); +int ldap_rename_account(char *oldaccount, char *newaccount); +int ldap_delete_account(char *account); +int ldap_do_modify(const char *account, const char *password, const char *email); +int ldap_get_user_info(char *account, char **email); +int ldap_delfromgroup(char *account, const char *group); +int ldap_add2group(char *account, const char *group); + void ldap_close(); + +#endif /* _x3ldap_h */