projects
/
invirt/packages/invirt-remote.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
use invirt config
[invirt/packages/invirt-remote.git]
/
files
/
usr
/
sbin
/
sipb-xen-remconffs
diff --git
a/files/usr/sbin/sipb-xen-remconffs
b/files/usr/sbin/sipb-xen-remconffs
index
df07f54
..
cddc53f
100755
(executable)
--- a/
files/usr/sbin/sipb-xen-remconffs
+++ b/
files/usr/sbin/sipb-xen-remconffs
@@
-13,6
+13,7
@@
import errno # for error number codes (ENOENT, etc)
from syslog import *
import sipb_xen_database
from syslog import *
import sipb_xen_database
+from invirt.config import structs as config
fuse.fuse_python_api = (0, 2)
fuse.fuse_python_api = (0, 2)
@@
-120,7
+121,7
@@
class RemConfFS(Fuse):
(princ, realm) = user.split('@')
else:
princ = user
(princ, realm) = user.split('@')
else:
princ = user
- realm = "ATHENA.MIT.EDU"
+ realm = config.authn[0].realm
return princ.replace('.', '/') + '@' + realm
return princ.replace('.', '/') + '@' + realm
@@
-227,7
+228,7
@@
class RemConfFS(Fuse):
if __name__ == '__main__':
if __name__ == '__main__':
- sipb_xen_database.connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
+ sipb_xen_database.connect(db.uri)
usage="""
$0 [mount_path]
"""
usage="""
$0 [mount_path]
"""