selftest:Samba4: provide DC_* variables for fl2000dc and fl2008r2dc
authorStefan Metzmacher <metze@samba.org>
Tue, 26 Apr 2016 06:50:00 +0000 (08:50 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 29 Apr 2016 10:06:26 +0000 (12:06 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11849

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Günther Deschner <gd@samba.org>
(cherry picked from commit b8055cb42cadf48367867213a35635f3391c9b8d)

selftest/target/Samba4.pm

index 7ea154407c97013b893c167a1f662b761769311c..e8d591560fdf33dfb4c19aff8e589cb7a042f7e0 100755 (executable)
@@ -1154,6 +1154,13 @@ sub provision_fl2000dc($$)
                warn("Unable to add wins configuration");
                return undef;
        }
+       $ret->{DC_SERVER} = $ret->{SERVER};
+       $ret->{DC_SERVER_IP} = $ret->{SERVER_IP};
+       $ret->{DC_SERVER_IPV6} = $ret->{SERVER_IPV6};
+       $ret->{DC_NETBIOSNAME} = $ret->{NETBIOSNAME};
+       $ret->{DC_USERNAME} = $ret->{USERNAME};
+       $ret->{DC_PASSWORD} = $ret->{PASSWORD};
+       $ret->{DC_REALM} = $ret->{REALM};
 
        return $ret;
 }
@@ -1230,6 +1237,13 @@ sub provision_fl2008r2dc($$)
                warn("Unable to add wins configuration");
                return undef;
        }
+       $ret->{DC_SERVER} = $ret->{SERVER};
+       $ret->{DC_SERVER_IP} = $ret->{SERVER_IP};
+       $ret->{DC_SERVER_IPV6} = $ret->{SERVER_IPV6};
+       $ret->{DC_NETBIOSNAME} = $ret->{NETBIOSNAME};
+       $ret->{DC_USERNAME} = $ret->{USERNAME};
+       $ret->{DC_PASSWORD} = $ret->{PASSWORD};
+       $ret->{DC_REALM} = $ret->{REALM};
 
        return $ret;
 }