16 lines
373 B
Plaintext
16 lines
373 B
Plaintext
![]() |
#!/usr/bin/env python
|
||
|
|
||
|
import sys
|
||
|
import xmlrpclib
|
||
|
import md5
|
||
|
|
||
|
(x, dynid, subdomain, zone, sharedSecret, adminPwd) = sys.argv
|
||
|
|
||
|
d = "%s %s %s %s %s" % (dynid, subdomain, zone, sharedSecret, adminPwd)
|
||
|
checksum = md5.new(d).hexdigest()
|
||
|
|
||
|
s = xmlrpclib.ServerProxy("http://localhost:8024")
|
||
|
r = s.register(dynid, subdomain, zone, sharedSecret, checksum, "test@test.de")
|
||
|
|
||
|
print r
|