]> jfr.im git - irc/evilnet/x3.git/blob - src/x3ldap.h
Minor typo in previous commit where returning 0 when it should have been 1 from opser...
[irc/evilnet/x3.git] / src / x3ldap.h
1 /* x3ldap.h - LDAP functionality for x3, by Rubin
2 * Copyright 2002-2007 X3 Development Team
3 *
4 * This file is part of x3.
5 *
6 * x3 is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with srvx; if not, write to the Free Software Foundation,
18 * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
19 */
20
21 #ifndef _x3ldap_h
22 #define _x3ldap_h
23
24 #include "nickserv.h"
25 int ldap_do_init();
26
27 unsigned int ldap_check_auth(const char *account, const char *pass);
28 int ldap_do_add(const char *account, const char *password, const char *email);
29 int ldap_rename_account(char *oldaccount, char *newaccount);
30 int ldap_delete_account(char *account);
31 int ldap_do_oslevel(const char *account, int level, int oldlevel);
32 int ldap_do_modify(const char *account, const char *password, const char *email);
33 int ldap_get_user_info(const char *account, char **email);
34 int ldap_delfromgroup(char *account, const char *group);
35 int ldap_add2group(char *account, const char *group);
36
37
38 void ldap_close();
39
40 #endif /* _x3ldap_h */