~ubuntu-branches/ubuntu/gutsy/directory-administrator/gutsy

« back to all changes in this revision

Viewing changes to src/profile.h

  • Committer: Bazaar Package Importer
  • Author(s): Guido Trotter
  • Date: 2006-03-28 08:21:51 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20060328082151-y8h12be370r2exz1
Tags: 1.7.1-1
* The "On Train" release
* New upstream version
  - Doesn't violate object class rules anymore (closes: #195825)
* Forward port two debian patches which are still applicable
* Stop applying patches which seem not useful anymore
* Remove old "install" file

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
   useful, but WITHOUT ANY WARRANTY; without even the implied warranty
11
11
   of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
12
   GNU General Public License for more details.
13
 
 
14
 
   You should have received a copy of the GNU General Public License along
15
 
   with Directory administrator; if not, send e-mail to amador@alomega.com 
16
13
*/
17
14
 
18
15
 
24
21
#ifndef __profile_h_defined
25
22
#define __profile_h_defined 1
26
23
 
 
24
/*
 
25
 * Work around versions of the LDAP client libs that don't have the OIDs
 
26
 * defined, or have them defined under the old name.  
 
27
 * This functionality is really a factor of the server, not the client 
 
28
 *
 
29
 */
 
30
 
 
31
#if defined(LDAP_EXOP_X_MODIFY_PASSWD) && !defined(LDAP_EXOP_MODIFY_PASSWD)
 
32
#define LDAP_EXOP_MODIFY_PASSWD LDAP_EXOP_X_MODIFY_PASSWD
 
33
#elif !defined(LDAP_EXOP_MODIFY_PASSWD)
 
34
#define LDAP_EXOP_MODIFY_PASSWD "1.3.6.1.4.1.4203.1.11.1"
 
35
#endif
 
36
 
 
37
#if defined(LDAP_EXOP_X_MODIFY_PASSWD_ID) && !defined(LDAP_EXOP_MODIFY_PASSWD_ID)
 
38
#define LDAP_TAG_EXOP_MODIFY_PASSWD_ID LDAP_EXOP_X_MODIFY_PASSWD_ID
 
39
#elif !defined(LDAP_EXOP_MODIFY_PASSWD_ID)
 
40
#define LDAP_TAG_EXOP_MODIFY_PASSWD_ID        ((ber_tag_t) 0x80U)
 
41
#endif
 
42
 
 
43
#if defined(LDAP_EXOP_X_MODIFY_PASSWD_NEW) && !defined(LDAP_EXOP_MODIFY_PASSWD_NEW)
 
44
#define LDAP_TAG_EXOP_MODIFY_PASSWD_NEW LDAP_EXOP_X_MODIFY_PASSWD_NEW
 
45
#elif !defined(LDAP_EXOP_MODIFY_PASSWD_NEW)
 
46
#define LDAP_TAG_EXOP_MODIFY_PASSWD_NEW       ((ber_tag_t) 0x82U)
 
47
#endif
 
48
 
 
49
 
27
50
typedef struct _connection_profile
28
51
{
29
52
  gchar *name;
81
104
int connection_profile_commit_modifications (connection_profile * conn,
82
105
                                             LDAPMod ** modifications,
83
106
                                             char *dn);
 
107
int connection_profile_commit_password (connection_profile * conn,
 
108
                                         gchar *password, gchar *dn, gchar **warning);
84
109
int connection_profile_create_record (connection_profile * conn,
85
110
                                      LDAPMod ** modifications, char *dn);
86
111