]>
jfr.im git - irc/evilnet/x3.git/blob - src/x3ldap.h
1 /* x3ldap.h - LDAP functionality for x3, by Rubin
2 * Copyright 2002-2007 X3 Development Team
4 * This file is part of x3.
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.
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.
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.
27 unsigned int ldap_check_auth(char *account
, 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
);
32 int ldap_do_modify(const char *account
, const char *password
, const char *email
);
33 int ldap_get_user_info(char *account
, char **email
);
34 int ldap_delfromgroup(char *account
, const char *group
);
35 int ldap_add2group(char *account
, const char *group
);
40 #endif /* _x3ldap_h */