Browse code

now realm is added when permissions are granted (thanks to Bill for reporting this)

Jiri Kuthan authored on 28/05/2003 20:23:42
Showing 1 changed files
... ...
@@ -87,6 +87,7 @@ ACL_TABLE=grp
87 87
 ACL_USER_COLUMN=username
88 88
 ACL_GROUP_COLUMN=grp
89 89
 ACL_MODIFIED_COLUMN=last_modified
90
+ACL_DOMAIN_COLUMN=domain
90 91
 
91 92
 # aliases table
92 93
 A_TABLE=aliases
... ...
@@ -420,8 +421,8 @@ acl() {
420 421
 				fi
421 422
 
422 423
         		QUERY="insert into $ACL_TABLE \
423
-                	($ACL_USER_COLUMN,$ACL_GROUP_COLUMN,$ACL_MODIFIED_COLUMN) \
424
-                	values ('$SIP_USER','$1', now());"
424
+                	($ACL_USER_COLUMN,$ACL_GROUP_COLUMN,$ACL_MODIFIED_COLUMN, $ACL_DOMAIN_COLUMN ) \
425
+                	values ('$SIP_USER','$1', now(), '$SIP_DOMAIN' );"
425 426
 				sql_query "$QUERY"
426 427
 				if [ $? -ne 0 ] ; then
427 428
 					echo "SQL Error"