svn commit: samba r11349 - in branches/SAMBA_4_0/source/libnet: .

abartlet at samba.org abartlet at samba.org
Fri Oct 28 02:13:15 GMT 2005


Author: abartlet
Date: 2005-10-28 02:13:14 +0000 (Fri, 28 Oct 2005)
New Revision: 11349

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

Log:
Actually add all the new spns...

Andrew Bartlett

Modified:
   branches/SAMBA_4_0/source/libnet/libnet_join.c


Changeset:
Modified: branches/SAMBA_4_0/source/libnet/libnet_join.c
===================================================================
--- branches/SAMBA_4_0/source/libnet/libnet_join.c	2005-10-28 02:09:35 UTC (rev 11348)
+++ branches/SAMBA_4_0/source/libnet/libnet_join.c	2005-10-28 02:13:14 UTC (rev 11349)
@@ -417,6 +417,12 @@
 				talloc_free(tmp_ctx);
 				return NT_STATUS_NO_MEMORY;
 			}
+			rtn = samdb_msg_add_string(remote_ldb, tmp_ctx, msg, "servicePrincipalName", service_principal_name[i]);
+			if (rtn == -1) {
+				r->out.error_string = NULL;
+				talloc_free(tmp_ctx);
+				return NT_STATUS_NO_MEMORY;
+			}
 		}
 
 		rtn = samdb_msg_add_string(remote_ldb, tmp_ctx, msg, "dNSHostName", dns_host_name);
@@ -425,18 +431,6 @@
 			talloc_free(tmp_ctx);
 			return NT_STATUS_NO_MEMORY;
 		}
-		rtn = samdb_msg_add_string(remote_ldb, tmp_ctx, msg, "servicePrincipalName", service_principal_name[0]);
-		if (rtn == -1) {
-			r->out.error_string = NULL;
-			talloc_free(tmp_ctx);
-			return NT_STATUS_NO_MEMORY;
-		}
-		rtn = samdb_msg_add_string(remote_ldb, tmp_ctx, msg, "servicePrincipalName", service_principal_name[1]);
-		if (rtn == -1) {
-			r->out.error_string = NULL;
-			talloc_free(tmp_ctx);
-			return NT_STATUS_NO_MEMORY;
-		}
 
 		rtn = samdb_replace(remote_ldb, tmp_ctx, msg);
 		if (rtn != 0) {



More information about the samba-cvs mailing list