Exemplo n.º 1
0
    def mkcred(self):
	if self.cred == None:
            hostname = socket.gethostname()
            groups = os.getgroups()
	    self.cred = (rpc.AUTH_UNIX, rpc.make_auth_unix(1, hostname, self.uid, self.gid, groups))
	return self.cred
Exemplo n.º 2
0
 def mkcred(self):
     self.cred = rpc.AUTH_UNIX, rpc.make_auth_unix(int(time()),
         self.fakename or socket.gethostname(), self.fuid, self.fgid, [])
     return self.cred
Exemplo n.º 3
0
    def mkcred(self):
	if self.cred == None:
            hostname = socket.gethostname()
            groups = os.getgroups()
	    self.cred = (rpc.AUTH_UNIX, rpc.make_auth_unix(1, hostname, self.uid, self.gid, groups))
	return self.cred
Exemplo n.º 4
0
 def mkcred(self):
     self.cred = rpc.AUTH_UNIX, rpc.make_auth_unix(
         int(time()), self.fakename or socket.gethostname(), self.fuid,
         self.fgid, [])
     return self.cred
Exemplo n.º 5
0
 def mkcred(self):
     import random
     self.cred = rpc.AUTH_UNIX, rpc.make_auth_unix(random.randint(1,99999),\
                                                   "localhost", 0, 0, [])
     return self.cred