usr/src/lib/pyrad/util.py
changeset 798 a7deccd6492f
parent 771 d8e492629de3
child 804 806e7738af00
--- a/usr/src/lib/pyrad/util.py	Wed Feb 01 09:22:41 2012 -0500
+++ b/usr/src/lib/pyrad/util.py	Thu Feb 02 11:25:01 2012 -0500
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
 #
 
 import socket
@@ -32,6 +32,11 @@
 import rad.adaptor as adapt
 
 #
+# Default path for authenticated AF_UNIX socket
+#
+_RAD_PATH_AFUNIX_AUTH = "/system/volatile/rad/radsocket"
+
+#
 # Make pipes quack enough like a socket to satisfy RecordMarkingSocket
 #
 class SocketLike(object):
@@ -114,7 +119,7 @@
 #
 # Connect to the local rad daemon via the standard unix domain socket
 #
-def connect_local(path = "/var/run/radsocket", locale = None):
+def connect_local(path = _RAD_PATH_AFUNIX_AUTH, locale = None):
 	s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM);
 	s.connect(path)
 	return rad.RadConnection(s, locale = locale)