Ticket #936 (closed defect: fixed)
SSL authentication for floating clients without reverse DNS mapping (or with arbitrary one)
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawmRt7tLBwyWzmVJmFuO9bCdKeMQnaFDP-I | Owned by: | desai |
---|---|---|---|
Priority: | major | Milestone: | Bcfg2 1.4.0 Release |
Component: | bcfg2-client | Version: | 1.0 |
Keywords: | Cc: |
Description
This was already discussed on the mailing list but got lost, so this ticket is to refresh old topic: http://thread.gmane.org/gmane.comp.sysutils.bcfg2.devel/3781
Basically, bcfg2 expects clients to have consistent reverse DNS record even for mobile clients. I just verified this on 1.1.0pre4.
In addition to mentioned thread there is another strange behaviour:
<Clients version="3.0"> <Client profile="basic" pingable="N" location="floating" uuid="example.com" name="example.com" auth="cert"/> </Clients>
Without reverse DNS record running bcfg2 -vqn results in "Client metadata resolution error for 11.22.33.44; check server log"
When reverse mapping exists (and points to something like 44-33-22-11.dynamic.adsl.blah.blah) running bcfg2 client succeeds but automatically adds another line to clients.xml (do not remember how it looked exactly, but you should get the idea):
<Clients version="3.0"> <Client profile="basic" pingable="N" location="floating" uuid="example.com" name="example.com" auth="cert"/> <Client profile="basic" name="44-33-22-11.dynamic.adsl.blah.blah" /> </Clients>
Attachments
Change History
comment:1 Changed 13 years ago by m4z <[email protected]…>
comment:2 Changed 12 years ago by desai
Is the use of the address attribute insufficient? You can use this to set an ip address (or several) that you want to map back to a client.
comment:3 Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawmRt7tLBwyWzmVJmFuO9bCdKeMQnaFDP-I
Unfortunately no, because client machines are mobile and I can not predict from which addresses they will connect to management server.
comment:4 Changed 12 years ago by solj
- Milestone changed from Bcfg2 1.2.0 Release to Bcfg2 1.2.1 Release (Bugfix)
comment:5 Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawkfHvWdYf7g8kSZA32s7dhK0Xig9JKo_CA
Issue #1030 (fixed in 5fe3867a3b75aff04eeb7ba8c910ee6939c1680f) addressed a very similar topic. (It did not fix messages in the log, though).
Did it change anything in regard to this bug?
comment:6 Changed 11 years ago by solj
- Milestone changed from Bcfg2 1.2.1 Release (Bugfix) to Bcfg2 1.3.0 Release
For completeness on the first half (but not too helpful in case of mobile clients; sorry to do that here): You don't need a reverse DNS record, an entry in the servers' /etc/hosts suffices - as long as it's the same as the CN in the clients' certificate of course.
Why do I post this? Because the error messages along the way do not really help to find the cause of the problem: