]> jfr.im git - irc/evilnet/x3.git/blame - src/x3ldap.h
Couple of srvx updates.
[irc/evilnet/x3.git] / src / x3ldap.h
CommitLineData
50895889 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
348683aa 8 * the Free Software Foundation; either version 3 of the License, or
50895889 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
e166c31b 24#include "nickserv.h"
25int ldap_do_init();
26
4c56cca4 27unsigned int ldap_check_auth(const char *account, const char *pass);
ea02341b 28int ldap_do_add(const char *account, const char *password, const char *email);
73d4cc91 29int ldap_rename_account(char *oldaccount, char *newaccount);
30int ldap_delete_account(char *account);
f3aff201 31int ldap_do_oslevel(const char *account, int level, int oldlevel);
73d4cc91 32int ldap_do_modify(const char *account, const char *password, const char *email);
4c56cca4 33int ldap_get_user_info(const char *account, char **email);
8a729617 34int ldap_delfromgroup(char *account, const char *group);
35int ldap_add2group(char *account, const char *group);
36
e166c31b 37
38void ldap_close();
50895889 39
40#endif /* _x3ldap_h */