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 | dea0c06eec44a7c2860f97d8f23584d30e482e0a (patch) | |
tree | f306aea3abca87f63e6b5791d494be778f00e2fe | |
parent | 381df1e52bfc97b80422de2703db8cb521dc47e1 (diff) | |
download | samba-dea0c06eec44a7c2860f97d8f23584d30e482e0a.tar.gz samba-dea0c06eec44a7c2860f97d8f23584d30e482e0a.tar.xz samba-dea0c06eec44a7c2860f97d8f23584d30e482e0a.zip |
resolving compilation errors
-rw-r--r-- | source/include/proto.h | 1 | ||||
-rw-r--r-- | source/passdb/ldap.c | 4 | ||||
-rw-r--r-- | source/passdb/smbpass.c | 3 | ||||
-rw-r--r-- | source/passdb/smbpassfile.c | 2 | ||||
-rw-r--r-- | source/smbd/server.c | 2 |
5 files changed, 7 insertions, 5 deletions
diff --git a/source/include/proto.h b/source/include/proto.h index 29135ec02b9..e4cefae1931 100644 --- a/source/include/proto.h +++ b/source/include/proto.h @@ -225,7 +225,6 @@ void initialize_multibyte_vectors( int client_codepage); /*The following definitions come from ldap.c */ -BOOL ldap_open_connection(LDAP **ldap_struct); BOOL add_ldappwd_entry(struct smb_passwd *newpwd); BOOL mod_ldappwd_entry(struct smb_passwd *pwd, BOOL override); BOOL add_ldap21pwd_entry(struct sam_passwd *newpwd); diff --git a/source/passdb/ldap.c b/source/passdb/ldap.c index 0804caf1a0b..af595d0c0a7 100644 --- a/source/passdb/ldap.c +++ b/source/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/source/passdb/smbpass.c b/source/passdb/smbpass.c index a712092439e..f2f0b27153d 100644 --- a/source/passdb/smbpass.c +++ b/source/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/source/passdb/smbpassfile.c b/source/passdb/smbpassfile.c index dfd5931a72b..c9d030f5290 100644 --- a/source/passdb/smbpassfile.c +++ b/source/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. diff --git a/source/smbd/server.c b/source/smbd/server.c index 9821b305bcd..a35c3a2fdc4 100644 --- a/source/smbd/server.c +++ b/source/smbd/server.c @@ -5193,7 +5193,7 @@ static void usage(char *pname) pstrcpy(global_myworkgroup, lp_workgroup()); - if(!generate_machine_sid()) + if(!pdb_generate_machine_sid()) { DEBUG(0,("ERROR: Samba cannot get a machine SID.\n")); exit(1); |