[Samba] Samba4: 2DC domain. Which ldap:// address do I use, DC1 or DC2?

July 29th, 2012 - 11:50 am ET by steve | Report spam
2 Samb4 DC's joined and replicating great.
Hi
I'm running some Linux scripts on DC2 which I copied from DC1.

I changed the ldap://address for a script which I copied to DC2 to that
of DC2. If I now deliberately failover DC1, the script on DC2 complains
that the ldap addresss is invalid.

Do I keep the scripts at the same ldap://address on BOTH DC's? Is, that
correct?
Cheers,
Steve

To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
email Follow the discussionReplies 6 repliesReplies Make a reply

Similar topics

Replies

#1 John Drescher
July 29th, 2012 - 07:20 pm ET | Report spam
On Sun, Jul 29, 2012 at 11:43 AM, steve wrote:
2 Samb4 DC's joined and replicating great.
Hi
I'm running some Linux scripts on DC2 which I copied from DC1.

I changed the ldap://address for a script which I copied to DC2 to that of
DC2. If I now deliberately failover DC1, the script on DC2 complains that
the ldap addresss is invalid.

Do I keep the scripts at the same ldap://address on BOTH DC's? Is, that
correct?



I put both ldap servers (actually in my case 3 ldap servers and 3 DCs)
on that line on both DCs.

John
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#2 steve
July 30th, 2012 - 03:20 am ET | Report spam
On 30/07/12 01:14, John Drescher wrote:
On Sun, Jul 29, 2012 at 11:43 AM, steve wrote:
2 Samb4 DC's joined and replicating great.
Hi
I'm running some Linux scripts on DC2 which I copied from DC1.

I changed the ldap://address for a script which I copied to DC2 to that of
DC2. If I now deliberately failover DC1, the script on DC2 complains that
the ldap addresss is invalid.

Do I keep the scripts at the same ldap://address on BOTH DC's? Is, that
correct?



I put both ldap servers (actually in my case 3 ldap servers and 3 DCs)
on that line on both DCs.

John



Hi John
Thanks
Say I have:
ldbsearch --url=ldap://hh1.hh3.site --kerberos=yes --krb5-ccache=$ccache
<some search stuff>

How would I add ldap://hh6.hh3.site to that line?

Is there a way to pull the fqdn's for both DC's from the directory? (so
I can make the script non specific to my domain)
Cheers,
Steve
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#3 Daniel Müller
July 30th, 2012 - 03:50 am ET | Report spam
If you use your DCs (using samba4 internal ldap)in replication mode all of
your address-books on your Dcs should be equal.


EDV Daniel Müller

Leitung EDV
Tropenklinik Paul-Lechler-Krankenhaus
Paul-Lechler-Str. 24
72076 Tübingen

Tel.: 07071/206-463, Fax: 07071/206-499
eMail:
Internet: www.tropenklinik.de

Von: [mailto:] Im
Auftrag von steve
Gesendet: Montag, 30. Juli 2012 09:18
An: John Drescher
Cc:
Betreff: Re: [Samba] Samba4: 2DC domain. Which ldap:// address do I use, DC1
or DC2?

On 30/07/12 01:14, John Drescher wrote:
On Sun, Jul 29, 2012 at 11:43 AM, steve wrote:
2 Samb4 DC's joined and replicating great.
Hi
I'm running some Linux scripts on DC2 which I copied from DC1.

I changed the ldap://address for a script which I copied to DC2 to
that of DC2. If I now deliberately failover DC1, the script on DC2
complains that the ldap addresss is invalid.

Do I keep the scripts at the same ldap://address on BOTH DC's? Is,
that correct?



I put both ldap servers (actually in my case 3 ldap servers and 3 DCs)
on that line on both DCs.

John



Hi John
Thanks
Say I have:
ldbsearch --url=ldap://hh1.hh3.site --kerberos=yes --krb5-ccache=$ccache
<some search stuff>

How would I add ldap://hh6.hh3.site to that line?

Is there a way to pull the fqdn's for both DC's from the directory? (so I
can make the script non specific to my domain) Cheers, Steve
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba

To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#4 steve
July 30th, 2012 - 04:40 am ET | Report spam
On 30/07/12 09:43, Daniel Müller wrote:
If you use your DCs (using samba4 internal ldap)in replication mode all of
your address-books on your Dcs should be equal.




Hi Daniel
I don't know what you mean by address books. I can scan the directory on
OU=domain Controllers and pull out the fqdn's to use from there. Is that it?
Cheers,
Steve


To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
#5 steve
July 30th, 2012 - 04:50 am ET | Report spam
On 30/07/12 10:43, Daniel Müller wrote:
Thats it. In replication mode all information is equal. So it should not
matter which DC you use.



OK, got it now. I can change my scripts to cut out the fqdns.

My question about how to include multiple ldap://fqdn's on ldbsearch
command lines is still unclear however.
Cheers,
Steve


To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
Replies Reply to this message
Help Create a new topicNext page Replies Make a reply
Search Make your own search