On 10/23/21 7:57 AM, Rowland Penny via samba wrote:>>> The relevant question is how is this URL being resolved? > > Sorry, but I didn't write the code and I haven't read it in depth, so I > do not know how the URL is resolved, except that it is usually done on > a round-robin basis. > >> >> And never mind how horrible this design is. The exclusion of -H >> should >> always indicate a local installation. Good grief. >Technically I *did* write this, but in my defense, it was mostly copy/paste from another command ;) Here is the relevant code: if H and H.startswith('ldap://'): dc_hostname = H[7:] self.url = H else: dc_hostname = netcmd_finddc(self.lp, self.creds) self.url = dc_url(self.lp, self.creds, dc=dc_hostname) Which says, if -H is specified (and it is an ldap url), then use it. Otherwise, pick a DC (in round robin fashion, as Rowland pointed out) in the domain your are joined to. Technically this should work regardless, as the SYSVOL will replicate the admx templates. It would probably make more sense to check if we're on a DC, then point to ourselves if we are. Sorry about being unclear about msiextract. It is indeed a command you would install on Linux. -- *David Mulder* Labs Software Engineer, Samba SUSE 1800 Novell Place Provo, UT 84606 (P)+1 801.861.6571 dmulder at suse.com <http://www.suse.com/>
Am 25.10.21 um 16:27 schrieb David Mulder via samba:> Technically this should work regardless, as the SYSVOL will replicate > the admx templates.Not if you are using the rsync method to synchronise SYSVOL on a Samba DC. Using this there is a "Master" that overwrites all the others. I think I need to check our installation which DC was chosen. Regards -- Dr. Christian Naumer Vice President Unit Head Bioprocess Development BRAIN Biotech AG Darmstaedter Str. 34-36, D-64673 Zwingenberg e-mail cn at brain-biotech.com, homepage www.brain-biotech.com phone +49-6251-9331-30 / fax +49-6251-9331-11 Sitz der Gesellschaft: Zwingenberg/Bergstrasse Registergericht AG Darmstadt, HRB 24758 Vorstand: Adriaan Moelker (Vorstandsvorsitzender), Lukas Linnig Aufsichtsratsvorsitzender: Dr. Georg Kellinghusen
On Mon, 2021-10-25 at 08:27 -0600, David Mulder via samba wrote:> On 10/23/21 7:57 AM, Rowland Penny via samba wrote:> > > > The relevant question is how is this URL being resolved? > > > > Sorry, but I didn't write the code and I haven't read it in depth, > > so I > > do not know how the URL is resolved, except that it is usually done > > on > > a round-robin basis. > > > > > And never mind how horrible this design is. The exclusion of -H > > > should > > > always indicate a local installation. Good grief. > > Technically I *did* write this, but in my defense, it was mostly > copy/paste from another command ;) > Here is the relevant code: > > if H and H.startswith('ldap://'): > > dc_hostname = H[7:] > > self.url = H > > else: > > dc_hostname = netcmd_finddc(self.lp, self.creds) > > self.url = dc_url(self.lp, self.creds, dc=dc_hostname) > > > Which says, if -H is specified (and it is an ldap url), then use it. > Otherwise, pick a DC (in round robin fashion, as Rowland pointed out) > in > the domain your are joined to. Technically this should work > regardless, > as the SYSVOL will replicate the admx templates.Only if you do this manually, it will not happen automatically. Rowland