code = afsconf_GetCellInfo(cdir, c_cell, "afsprot", &info)
pyafs_error(code)
code = afsconf_GetCellInfo(cdir, c_cell, "afsprot", &info)
pyafs_error(code)
"""
Given an identifier, convert it to a PTS ID by looking up the
name if it's a string, or otherwise just converting it to an
integer.
"""
if isinstance(ident, (str, unicode)):
"""
Given an identifier, convert it to a PTS ID by looking up the
name if it's a string, or otherwise just converting it to an
integer.
"""
if isinstance(ident, (str, unicode)):
"""
Create a new user in the protection database. If an ID is
provided, that one will be used.
"""
Create a new user in the protection database. If an ID is
provided, that one will be used.
- def CreateGroup(self, name, owner, id=None):
+ def _CreateGroup(self, name, owner, id=None):
"""
Create a new group in the protection database. If an ID is
provided, that one will be used.
"""
Create a new group in the protection database. If an ID is
provided, that one will be used.
code = ubik_PR_AddToGroup(self.client, 0, uid, gid)
pyafs_error(code)
code = ubik_PR_AddToGroup(self.client, 0, uid, gid)
pyafs_error(code)
code = ubik_PR_RemoveFromGroup(self.client, 0, uid, gid)
pyafs_error(code)
code = ubik_PR_RemoveFromGroup(self.client, 0, uid, gid)
pyafs_error(code)
code = ubik_PR_ListEntry(self.client, 0, id, ¢ry)
pyafs_error(code)
code = ubik_PR_ListEntry(self.client, 0, id, ¢ry)
pyafs_error(code)
- def ChangeEntry(self, ident, newname=None, newid=None, newoid=None):
+ def _ChangeEntry(self, ident, newname=None, newid=None, newoid=None):
code = ubik_PR_ChangeEntry(self.client, 0, id, c_newname, c_newoid, c_newid)
pyafs_error(code)
code = ubik_PR_ChangeEntry(self.client, 0, id, c_newname, c_newoid, c_newid)
pyafs_error(code)
code = ubik_PR_IsAMemberOf(self.client, 0, uid, gid, &flag)
pyafs_error(code)
return bool(flag)
code = ubik_PR_IsAMemberOf(self.client, 0, uid, gid, &flag)
pyafs_error(code)
return bool(flag)
code = ubik_PR_SetMax(self.client, 0, id, 0)
pyafs_error(code)
code = ubik_PR_SetMax(self.client, 0, id, 0)
pyafs_error(code)
code = ubik_PR_SetMax(self.client, 0, id, PRGRP)
pyafs_error(code)
code = ubik_PR_SetMax(self.client, 0, id, PRGRP)
pyafs_error(code)
- def SetFields(self, ident, access=None, groups=None, users=None):
+ def _SetFields(self, ident, access=None, groups=None, users=None):
cdef afs_int32 code
cdef afs_int32 mask = 0, flags = 0, nusers = 0, ngroups = 0
cdef afs_int32 code
cdef afs_int32 mask = 0, flags = 0, nusers = 0, ngroups = 0