Skip to content

Commit e5181f6

Browse files
committed
Adding SASL default structure support
1 parent 6b17acc commit e5181f6

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

linux.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
tar czvf /tmp/ldap.tgz openldap.h module.modulemap Tests Package.swift
2+
scp /tmp/ldap.tgz 192.168.56.11:/tmp
3+
ssh 192.168.56.11 "cd /tmp;rm -rf ldap;mkdir ldap;cd ldap;tar xzvf ../ldap.tgz;swift build;swift test"

openldap.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
1+
#ifndef __PERFECT_OPENLDAP__
2+
#define __PERFECT_OPENLDAP__
13
#ifdef __APPLE__
24
#include "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/LDAP.framework/Headers/ldap.h"
35
#else
46
#include "/usr/include/ldap.h"
57
#endif
8+
9+
typedef struct lutil_sasl_defaults_s {
10+
char *mech;
11+
char *realm;
12+
char *authcid;
13+
char *passwd;
14+
char *authzid;
15+
char **resps;
16+
int nresps;
17+
} lutilSASLdefaults;
18+
19+
#endif

0 commit comments

Comments
 (0)