diff options
author | Luke Leighton <lkcl@samba.org> | 1998-05-18 14:17:47 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1998-05-18 14:17:47 +0000 |
commit | 646ab2b0a773592a5973ce78fecfb24b39aa2506 (patch) | |
tree | ab0b0bea789a68923fbb4de508b4ce528dc74c8e /source3/passdb | |
parent | 648ceb2f2ed5c9c029cf85f22f0dfccdd915ab12 (diff) | |
download | samba-646ab2b0a773592a5973ce78fecfb24b39aa2506.tar.gz samba-646ab2b0a773592a5973ce78fecfb24b39aa2506.tar.bz2 samba-646ab2b0a773592a5973ce78fecfb24b39aa2506.zip |
resolving compilation errors
(This used to be commit dea0c06eec44a7c2860f97d8f23584d30e482e0a)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/ldap.c | 4 | ||||
-rw-r--r-- | source3/passdb/smbpass.c | 3 | ||||
-rw-r--r-- | source3/passdb/smbpassfile.c | 2 |
3 files changed, 6 insertions, 3 deletions
diff --git a/source3/passdb/ldap.c b/source3/passdb/ldap.c index 0804caf1a0..af595d0c0a 100644 --- a/source3/passdb/ldap.c +++ b/source3/passdb/ldap.c @@ -32,7 +32,7 @@ extern int DEBUGLEVEL; /******************************************************************* open a connection to the ldap serve. ******************************************************************/ -BOOL ldap_open_connection(LDAP **ldap_struct) +static BOOL ldap_open_connection(LDAP **ldap_struct) { if ( (*ldap_struct = ldap_open(lp_ldap_server(),lp_ldap_port()) ) == NULL) { @@ -922,4 +922,6 @@ BOOL setldappwpos(void *vp, unsigned long tok) return False; } +#else +static void dummy_function(void) { } /* stop some compilers complaining */ #endif diff --git a/source3/passdb/smbpass.c b/source3/passdb/smbpass.c index a712092439..f2f0b27153 100644 --- a/source3/passdb/smbpass.c +++ b/source3/passdb/smbpass.c @@ -21,6 +21,7 @@ #ifdef USE_SMBPASS_DB +extern int pw_file_lock_depth; extern int DEBUGLEVEL; extern pstring samlogon_user; extern BOOL sam_logon_in_ssb; @@ -141,7 +142,7 @@ struct sam_passwd *getsmb21pwent(void *vp) user.smb_userid = pw_buf->smb_userid; user.smb_grpid = pwfile->pw_gid; - user.user_rid = uid_to_user_rid (user.smb_userid); + user.user_rid = pdb_uid_to_user_rid (user.smb_userid); user.group_rid = DOMAIN_GROUP_RID_USERS; /* lkclXXXX this is OBSERVED behaviour by NT PDCs, enforced here. */ pstrcpy(full_name , ""); diff --git a/source3/passdb/smbpassfile.c b/source3/passdb/smbpassfile.c index dfd5931a72..c9d030f529 100644 --- a/source3/passdb/smbpassfile.c +++ b/source3/passdb/smbpassfile.c @@ -22,6 +22,7 @@ extern int DEBUGLEVEL; static int gotalarm; +int pw_file_lock_depth = 0; /*************************************************************** Signal function to tell us we timed out. @@ -63,7 +64,6 @@ BOOL do_file_lock(int fd, int waitsecs, int type) return (ret == 0); } -static int pw_file_lock_depth; /*************************************************************** Lock an fd. Abandon after waitsecs seconds. |