Re: [PATCH] question about socket.getfqdn()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm currently testing out something like this...

  1.
             fqdn = socket.getfqdn()
  2.
             host = socket.gethostname()
  3.
             if fdqn.find(host) != -1:
  4.
                 subj.CN = fqdn
  5.
             else:
  6.
                 subj.CN = host

Will have something for you to test on your setup shortly...

--Michael


_______________________________________________
Func-list mailing list
Func-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/func-list

[Index of Archives]     [Fedora Users]     [Linux Networking]     [Fedora Legacy List]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux