svn commit: samba r23653 - in branches/SAMBA_4_0/source/winbind: .

metze at samba.org metze at samba.org
Fri Jun 29 11:07:20 GMT 2007


Author: metze
Date: 2007-06-29 11:07:19 +0000 (Fri, 29 Jun 2007)
New Revision: 23653

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23653

Log:
add dummy implementation for all nss calls to let nsstest 
pass against a samba4 winbind

metze
Modified:
   branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c
   branches/SAMBA_4_0/source/winbind/wb_samba3_protocol.c


Changeset:
Modified: branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c
===================================================================
--- branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c	2007-06-29 10:22:18 UTC (rev 23652)
+++ branches/SAMBA_4_0/source/winbind/wb_samba3_cmd.c	2007-06-29 11:07:19 UTC (rev 23653)
@@ -662,3 +662,82 @@
  done:
 	wbsrv_samba3_async_epilogue(status, s3call);
 }
+
+/* NSS calls */
+
+NTSTATUS wbsrv_samba3_getpwnam(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_getpwnam called\n"));
+	s3call->response.result = WINBINDD_ERROR;
+	return NT_STATUS_OK;
+}
+
+NTSTATUS wbsrv_samba3_getpwuid(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_getpwuid called\n"));
+	s3call->response.result = WINBINDD_ERROR;
+	return NT_STATUS_OK;
+}
+
+NTSTATUS wbsrv_samba3_setpwent(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_setpwent called\n"));
+	s3call->response.result = WINBINDD_OK;
+	return NT_STATUS_OK;
+}
+
+NTSTATUS wbsrv_samba3_getpwent(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_getpwent called\n"));
+	s3call->response.result = WINBINDD_ERROR;
+	return NT_STATUS_OK;
+}
+
+NTSTATUS wbsrv_samba3_endpwent(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_endpwent called\n"));
+	s3call->response.result = WINBINDD_OK;
+	return NT_STATUS_OK;
+}
+
+NTSTATUS wbsrv_samba3_getgrnam(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_getgrnam called\n"));
+	s3call->response.result = WINBINDD_ERROR;
+	return NT_STATUS_OK;
+}
+
+NTSTATUS wbsrv_samba3_getgrgid(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_getgrgid called\n"));
+	s3call->response.result = WINBINDD_ERROR;
+	return NT_STATUS_OK;
+}
+
+NTSTATUS wbsrv_samba3_getgroups(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_getgroups called\n"));
+	s3call->response.result = WINBINDD_ERROR;
+	return NT_STATUS_OK;
+}
+
+NTSTATUS wbsrv_samba3_setgrent(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_setgrent called\n"));
+	s3call->response.result = WINBINDD_OK;
+	return NT_STATUS_OK;
+}
+
+NTSTATUS wbsrv_samba3_getgrent(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_getgrent called\n"));
+	s3call->response.result = WINBINDD_ERROR;
+	return NT_STATUS_OK;
+}
+
+NTSTATUS wbsrv_samba3_endgrent(struct wbsrv_samba3_call *s3call)
+{
+	DEBUG(5, ("wbsrv_samba3_endgrent called\n"));
+	s3call->response.result = WINBINDD_OK;
+	return NT_STATUS_OK;
+}

Modified: branches/SAMBA_4_0/source/winbind/wb_samba3_protocol.c
===================================================================
--- branches/SAMBA_4_0/source/winbind/wb_samba3_protocol.c	2007-06-29 10:22:18 UTC (rev 23652)
+++ branches/SAMBA_4_0/source/winbind/wb_samba3_protocol.c	2007-06-29 11:07:19 UTC (rev 23653)
@@ -125,19 +125,41 @@
 	case WINBINDD_LIST_TRUSTDOM:
 		return wbsrv_samba3_list_trustdom(s3call);
 
-		/* Unimplemented commands */
+	case WINBINDD_GETPWNAM:
+		return wbsrv_samba3_getpwnam(s3call);
 
-	case WINBINDD_GETPWNAM:
 	case WINBINDD_GETPWUID:
+		return wbsrv_samba3_getpwuid(s3call);
+
+	case WINBINDD_SETPWENT:
+		return wbsrv_samba3_setpwent(s3call);
+
+	case WINBINDD_GETPWENT:
+		return wbsrv_samba3_getpwent(s3call);
+
+	case WINBINDD_ENDPWENT:
+		return wbsrv_samba3_endpwent(s3call);
+
 	case WINBINDD_GETGRNAM:
+		return wbsrv_samba3_getgrnam(s3call);
+
 	case WINBINDD_GETGRGID:
+		return wbsrv_samba3_getgrgid(s3call);
+
 	case WINBINDD_GETGROUPS:
-	case WINBINDD_SETPWENT:
-	case WINBINDD_ENDPWENT:
-	case WINBINDD_GETPWENT:
+		return wbsrv_samba3_getgroups(s3call);
+
 	case WINBINDD_SETGRENT:
+		return wbsrv_samba3_setgrent(s3call);
+
+	case WINBINDD_GETGRENT:
+		return wbsrv_samba3_getgrent(s3call);
+
 	case WINBINDD_ENDGRENT:
-	case WINBINDD_GETGRENT:
+		return wbsrv_samba3_endgrent(s3call);
+
+		/* Unimplemented commands */
+
 	case WINBINDD_PAM_CHAUTHTOK:
 	case WINBINDD_PAM_LOGOFF:
 	case WINBINDD_PAM_CHNG_PSWD_AUTH_CRAP:



More information about the samba-cvs mailing list