summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2013-10-29 23:30:31 +0100
committerMichael Tänzer <neo@nhng.de>2013-10-29 23:30:31 +0100
commite148d16334e59ad94dc03d20b7a99def75441f6e (patch)
tree38fb51427a75acb9a4e9a4f7d719dcf8e0c8272b
parentfed7fea0cb2eb44ccdced91e251a4f10431f5401 (diff)
downloadcacert-devel-e148d16334e59ad94dc03d20b7a99def75441f6e.tar.gz
cacert-devel-e148d16334e59ad94dc03d20b7a99def75441f6e.tar.xz
cacert-devel-e148d16334e59ad94dc03d20b7a99def75441f6e.zip
bug 1010: Also add OU to the database when in MS banch
Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--includes/account.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/includes/account.php b/includes/account.php
index be9f45b..8ba6af0 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -1552,12 +1552,12 @@
$query = "insert into `orgemailcerts` set
`CN`='$defaultemail',
+ `ou`='".$_SESSION['_config']['OU']."',
`keytype`='NS',
`orgid`='".$org['orgid']."',
`created`=FROM_UNIXTIME(UNIX_TIMESTAMP()),
`codesign`='".$_SESSION['_config']['codesign']."',
`rootcert`='".$_SESSION['_config']['rootcert']."',
- `ou`='".$_SESSION['_config']['OU']."',
`description`='".$_SESSION['_config']['description']."'";
mysql_query($query);
$emailid = mysql_insert_id();
@@ -1643,6 +1643,7 @@
$query = "insert into `orgemailcerts` set
`CN`='$defaultemail',
+ `ou`='".$_SESSION['_config']['OU']."',
`keytype`='" . sanitizeHTML($_REQUEST['keytype']) . "',
`orgid`='".$org['orgid']."',
`created`=FROM_UNIXTIME(UNIX_TIMESTAMP()),