bug 1010: Also add OU to the database when in MS banch
authorMichael Tänzer <neo@nhng.de>
Tue, 29 Oct 2013 22:30:31 +0000 (23:30 +0100)
committerMichael Tänzer <neo@nhng.de>
Tue, 29 Oct 2013 22:30:31 +0000 (23:30 +0100)
Signed-off-by: Michael Tänzer <neo@nhng.de>
includes/account.php

index be9f45b..8ba6af0 100644 (file)
 
                        $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();
 
                        $query = "insert into `orgemailcerts` set
                                                `CN`='$defaultemail',
+                                               `ou`='".$_SESSION['_config']['OU']."',
                                                `keytype`='" . sanitizeHTML($_REQUEST['keytype']) . "',
                                                `orgid`='".$org['orgid']."',
                                                `created`=FROM_UNIXTIME(UNIX_TIMESTAMP()),