[SAMBA4] fix compilation issues

Tiago Batista tiagosbatista at gmail.com
Mon May 5 13:50:52 GMT 2008


Trying to compile the latest git tree,  I got some errors "auth/pam_error.h
not found" errors,
it looks like it moved to auth/ntlm/pam_errors.h.

I am not familiar with the internals of samba, and I just compiled it... Do
not put any faith into this!

Tiago
-------------- next part --------------
diff --git a/source/auth/ntlm/auth_unix.c b/source/auth/ntlm/auth_unix.c
index 5073ba6..1717b9d 100644
--- a/source/auth/ntlm/auth_unix.c
+++ b/source/auth/ntlm/auth_unix.c
@@ -24,7 +24,7 @@
 #include "auth/ntlm/auth_proto.h"
 #include "system/passwd.h" /* needed by some systems for struct passwd */
 #include "lib/socket/socket.h" 
-#include "auth/pam_errors.h"
+#include "auth/ntlm/pam_errors.h"
 #include "param/param.h"
 
 /* TODO: look at how to best fill in parms retrieveing a struct passwd info
diff --git a/source/torture/winbind/struct_based.c b/source/torture/winbind/struct_based.c
index 87378aa..31c5b8c 100644
--- a/source/torture/winbind/struct_based.c
+++ b/source/torture/winbind/struct_based.c
@@ -26,7 +26,7 @@
 #include "libcli/security/security.h"
 #include "librpc/gen_ndr/netlogon.h"
 #include "param/param.h"
-#include "auth/pam_errors.h"
+#include "auth/ntlm/pam_errors.h"
 
 #define DO_STRUCT_REQ_REP_EXT(op,req,rep,expected,strict,warnaction,cmt) do { \
 	NSS_STATUS __got, __expected = (expected); \
diff --git a/source/winbind/wb_samba3_cmd.c b/source/winbind/wb_samba3_cmd.c
index f0aaaa7..5ef0339 100644
--- a/source/winbind/wb_samba3_cmd.c
+++ b/source/winbind/wb_samba3_cmd.c
@@ -29,7 +29,7 @@
 #include "version.h"
 #include "librpc/gen_ndr/netlogon.h"
 #include "libcli/security/security.h"
-#include "auth/pam_errors.h"
+#include "auth/ntlm/pam_errors.h"
 #include "auth/credentials/credentials.h"
 #include "smbd/service_task.h"
 


More information about the samba-technical mailing list