Giter VIP home page Giter VIP logo

vimbadmin's People

Contributors

andrewd-sterling avatar barryo avatar dependabot[bot] avatar dereckson avatar diogocsc avatar kaechele avatar liayn avatar mfechner avatar netscorx avatar nine avatar phiber2000 avatar phrozenbyte avatar pierreozoux avatar premax avatar reissmann avatar rozwell avatar spiral23 avatar tribut avatar troggy avatar vogan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vimbadmin's Issues

LDAP support

A very handy feature would be to support LDAP as a backend for user, domain and transport information.

When using Dovecot password generator, keep {TYPE} in password field

I have changed the password type a couple of times over the years and Dovecot gracefully manages password changes by keeping prefixes before the password so it can use multiple types., like {CRYPT} {MD5} and {DIGEST-MD5]

vimbadmin strips the type from the password prior to adding it to the database leaving me without the ability to change the password encryption scheme in the future.

ERROR: Your Doctrine set-up is not working.

Saw an old post with this title but no useful help from the poster. Here's the dump from the cli. The application.ini has been updated with all the goodies I need - why Doctrine is complaining is unclear unless I'm missing some env variables (though all the 3rd Party items live in the vimbadmin path.

vimbadmin]# bin/doctrine-cli.php create-tables
PHP Notice: Undefined index: connection_string in /usr/share/vimbadmin-2.2.2/library/ViMbAdmin/Resource/Doctrine.php on line 94

ERROR: Your Doctrine set-up is not working.

Could not parse dsn
#0 /usr/share/vimbadmin-2.2.2/library/Doctrine/Doctrine/Manager.php(435): Doctrine_Manager->_buildDsnPartsArray(NULL)
#1 /usr/share/vimbadmin-2.2.2/library/Doctrine/Doctrine/Manager.php(305): Doctrine_Manager->parseDsn(NULL)
#2 /usr/share/vimbadmin-2.2.2/library/ViMbAdmin/Resource/Doctrine.php(94): Doctrine_Manager->openConnection(NULL)
#3 /usr/share/vimbadmin-2.2.2/library/ViMbAdmin/Resource/Doctrine.php(55): ViMbAdmin_Resource_Doctrine->getDoctrine()
#4 /usr/share/vimbadmin-2.2.2/library/Zend/Application/Bootstrap/BootstrapAbstract.php(683): ViMbAdmin_Resource_Doctrine->init()
#5 /usr/share/vimbadmin-2.2.2/library/Zend/Application/Bootstrap/BootstrapAbstract.php(629): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('doctrine')
#6 /usr/share/vimbadmin-2.2.2/library/Zend/Application/Bootstrap/BootstrapAbstract.php(586): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap('doctrine')
#7 /usr/share/vimbadmin-2.2.2/bin/doctrine-cli.php(66): Zend_Application_Bootstrap_BootstrapAbstract->bootstrap('doctrine')
#8 {main}

Editing aliases

After editing alias and saving, there will appear red notification "An unexpected error has occured."
When i refresh alias list there will appear green notification "You have successfully added/edited the alias."

What crypt scheme is being used for passwords in the admin table.

Hi,

I wanted to use auth_mysql mod in apache2 to use the admin table for authentication. I sucessfully did so before with the mailbox table because the password feel seems to be hashed in a way that the auth_mysql mod understands. Not so with the passwords in the admin table. What method is being used to hash the passwords there and is it something that is supported with auth_mysql. If not can I change how passwords are stored in the admin table to use the same scheme as they are stored in the mailbox table (i.e using CRYPT-SHA512 via doveadm pw).

Thanks.

auth/login

After following all steps, and trying to run the site I receive the following error:

Not Found

The requested URL /auth/login was not found on this server.

What am I missing?

Quota

I have two Suggests according the Quota handling.

First: I was irritated with the Quota-Formfield. Only a Numberfield, no more description. What does that number mean? Byte? Kilobyte? Kilometers? Eggs? You should propably add a Label behind the field wo says that it is Byte, or, even better, a dropdown selection for kilo, mega or gigabyte (In the database should stand the byte amount, because compatibility to dovecot (or courier)).

Second Point: Maybe a database-Field for used_quota and Messages, so dovecot could write it into the database and in the mailbox-list you could ad a Progessbar how full the mailboxes are (Jquery and bootstrap has beautiful Progressbars).

Use PostfixAdmin core code?

Hello,

I'm one of the PostfixAdmin authors and would like to ask if you are interested in using the PostfixAdmin core code instead of re-inventing the wheel all the time ;-)

I'm currently working on a full rewrite of PostfixAdmin, which has PHP classes for each part (AliasHander, MailboxHandler, AliasdomainHandler, AdminHandler etc.) that does all the work, and a common edit.php that works for all of them. (You can find the code in SVN trunk on sf.net/projects/postfixadmin - this will become the 3.0 release.)

This also means: You could use the *Handler classes and would only have to maintain your version of edit.php as a "skin". You'd also get all new features (for example alias domains and a commandline client) and bugfixes in PostfixAdmin for free ;-)

If you are interested or have any questions, just reply here, join the #postfixadmin channel on freenode or the PostfixAdmin mailinglist on sourceforge.

Regards,

Christian Boltz

Your session has been destroyed for your own security on logout page

The following message is showing up even after clicking logout link. I think there no need to display this on logout.
Usually I AM re-logging-in because I know that my vpn session has just crashed and so my ip address.

"Your IP address has changed indication a possible session hijack attempt. Your session has been destroyed for your own security"

defaults.mailbox.password_hash should not be required for schemes using crypt()

When using the crypt() function to hash the password, the salt is being saved in the hash.
This means that there is no need to have a preset salt in such cases, because it is always recoverable from the password. Using the same salt in less secure in this case.

Even more interesting, it seems that if the salt value would be changed in the config file, the end user would no longer be allowed to change their password using the "Mailbox password change" function (even though they would be able to log in using IMAP and other protocols), because in AuthController::changePasswordAction(), the users current password is checked against the configured hash, which would not match by then.

I think the requirement of pre-configured salt could be avoided for crypt() if the Mailbox class had a separate function allowing to check whether a given password is valid. It also seems to me that it would make sense if the hash scheme would be a property of the Mailbox object itself. Unfortunately, I've never worked with Doctrine or Zend, so I've no idea if it's possible to pass these settings to the Mailbox object during its initialization.

identical mailbox and alias not working

Hello,

It seems that i cannot create a user with the same name as an existing alias, im not sure this is correct behaviour, as far as understand , if i have an alias [email protected] delivering mail to mailbox [email protected], i could also create mailbox [email protected] and then also make the alias point to both mailboxes [email protected] and [email protected] ! thus mail will be delivered to both mailboxes using an alias that has a name that is identical to a mailbox. currently vimbadmin is not allowing this as it insists that the address to be unique! reporting duplicate entry for key 'address'.

[BUG] Domainadmin can adjust domain quotas and restrictions set by superadmin

When a superadmin creates/edits a domain, he/she can set up specific quotas and account-limits that should be applied further downstream onto that particular domain.

Example:
The superadmin creates a domain called example.net, with 10 mailboxes, 10 aliases, 10G domainquota and 1G userquota.
Now, adding a domainadmin user allows this domain to be managed by that user, as intended.

The issue is however that the new domainadmin can change all of these when he/she wants to, effectively avoiding the intended restriction-system set by the superadmin. I doubt this is how it is intended?
My thought would be that the domainadmin should handle accounts and their limits, and not the restrictions set for the domain itself?

Can't add an localhost alias

Postfix mydestination is:

mydestination = $myhostname, localhost.$mydomain, localhost

But i can't add a local address e.g. test@localhost (used to mail2news gateway)

error Undefined variable: vException when there is a problem with sending emails

Steps to reproduce the problem:

  1. Select a new admin account
  2. Check the box for send welcome email
  3. let it be that there is a problem with sending the welcome email

Expected output:

Account success creation, and error/warning about failing to send email

instead i get:

Notice: Undefined variable: vException in /usr/local/vimbadmin-0.2.5/application/controllers/AdminController.php on line 370 Fatal error: Call to a member function getTraceAsString() on a non-object in /usr/local/vimbadmin-0.2.5/application/controllers/AdminController.php on line 370

What version of the product are you using? On what operating system?

I'm using version 2.5

I've done the changes below (compare commented line with the one below it)

365
366 $mailer->send();
367 }
368 catch( Exception $e )
369 {
370 //$this->getLogger()->debug( $vException->getTraceAsString() );
371 $this->getLogger()->debug( $e->getTraceAsString() );
372 $this->addMessage( _( 'Could not send welcome email' ), ViMbAdmin_Message::ALERT );
373 }
374 }
375
376 $this->addMessage( _( 'You have successfully added a new administrator to the system.' ), ViMbAdmin_Message::SUCCESS );

No CRAM password scheme option

I'm considering migrating from PostFixAdmin to ViMbAdmin but miss 1 major feature that is important to me: CRAM-MD5 authentication. PostFixAdmin allows to specify dovecot (dovecotpw) as source for passwords:

// dovecot:CRYPT-METHOD = use dovecotpw -s 'CRYPT-METHOD'. Example: dovecot:CRAM-MD5
$CONF['encrypt'] = 'dovecot:CRAM-MD5';

Is it possible to implement this in ViMbAdmin?

mailbox password change (from user) fails

When an user wants to update the mailbox password, there is always the error: "Invalid username or password." thrown.

I compared the values of the stored and the hashed current password: these are not the same. I'm pretty sure the password is correct, the mail stack accepts it and its stored with KeepassX.

I use ViMbAdmin version 2.2.1, Password_Scheme is "dovecot:SSHA512"

Postgresql statement errors after setup

Domains:

2014-02-16 18:17:56 CET ERROR:  column "m1_.delete_pending" must appear in the GROUP BY clause or be used in an aggregate function at character 375
2014-02-16 18:17:56 CET STATEMENT:  SELECT d0_.id AS id0, d0_.domain AS domain1, d0_.alias_count AS alias_count2, d0_.mailbox_count AS mailbox_count3, d0_.max_aliases AS max_aliases4, d0_.max_mailboxes AS max_mailboxes5, SUM(m1_.maildir_size) AS sclr6, d0_.max_quota AS max_quota7, d0_.quota AS quota8, d0_.transport AS transport9, d0_.backupmx AS backupmx10, d0_.active AS active11, d0_.created AS created12, m1_.delete_pending AS delete_pending13 FROM domain d0_ LEFT JOIN mailbox m1_ ON d0_.id = m1_.Domain_id GROUP BY d0_.id ORDER BY d0_.domain ASC

Mailboxes:

2014-02-16 18:18:37 CET ERROR:  operator does not exist: boolean = integer at character 359
2014-02-16 18:18:37 CET HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
2014-02-16 18:18:37 CET STATEMENT:  SELECT m0_.id AS id0, m0_.username AS username1, m0_.name AS name2, m0_.active AS active3, m0_.maildir_size AS maildir_size4, m0_.homedir_size AS homedir_size5, m0_.size_at AS size_at6, m0_.quota AS quota7, d1_.domain AS domain8, m0_.delete_pending AS delete_pending9 FROM mailbox m0_ INNER JOIN domain d1_ ON m0_.Domain_id = d1_.id WHERE m0_.delete_pending = 0

The other pages work only domain and mailbox is doing problems.

Max quota setting is not considered

For a domain I've specified the quota and max quota settings. Next to issue #7 I can't change the initial quota of a mailbox to exceed the default up to the max quota settings, which I assumed was possible.

So every mailbox has the same quota settings and there is no way to override this (except for hacking the db itself - which I wanted to prevent).

Why is there a separate userbase for the application?

Hi there,

What's the reason for ViMbAdmin to have a separate user base for the application itself? I would like to be able to have a super admin account, which also has a mailbox within a domain and have that account be the domain admin of one or more domains within the system.

Besides that, it looks to me that the user base passwords for the application itself is MD5 hashed, while the mailbox passwords have the ability of a much more powerful encryption. Can anyone clarify this for me? I'm trying to figure out if this application is featured and secure enough for my needs.

Thanks in advance!
Lennart

nginx + ViMbAdmin

It's actually not a bug but if you're using NGINX with the standard configuration and HTTPS is not active on your vhost
Nginx fills the $_SERVER['HTTPS'] with an empty String thanks to the preconfigured fastcgi_params.

The result is that the genUrl will allways start with https://...:
$vView->pagebase = 'http' . ( isset( $_SERVER['HTTPS'] ) ? 's' : '' ) . '://'

in library/ViMbAdmin/Controller/Action.php on line: 342.

A much more accurate way to check if HTTPS is active would be:
if (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) {
or
if($_SERVER['SERVER_PORT'] == '443')

Table creation fails on PostgreSQL

Hi,

I'm trying to install ViMbAdmin with PostgreSQL but the table-creation fails:

./doctrine-cli.php create-tables

SQLSTATE[25P02]: In failed sql transaction: 7 ERROR: current transaction is aborted, commands ignored until end of transaction block. Failing Query: "ALTER TABLE alias ADD CONSTRAINT alias_domain_domain_domain FOREIGN KEY (domain) REFERENCES domain(domain) NOT DEFERRABLE INITIALLY IMMEDIATE". Failing Query: ALTER TABLE alias ADD CONSTRAINT alias_domain_domain_domain FOREIGN KEY (domain) REFERENCES domain(domain) NOT DEFERRABLE INITIALLY IMMEDIATE

Has anyone tested this before?
N.

Add support for post/pre creation/deletion scripts

Hi,

could you please add support for scripts that should be run before or after a user creation or deletion?
I use PostFixAdmin for the moment but like your project and would like to switch. This is one of the features that is blocking that.

Thanks.

Error in edit.phtml

Hi, i was unable to install(perform initial setup), there was no form at the setup page.

Tested on system: Debian 6 (squeeze)
doctrine 1.2.2-2+squeeze1
smarty3 3.0~rc1-1

tested with zendframework 1.10.6-1squeeze1 and zendframework from svn (using library-init.sh)

Error:

[error] PHP Warning: Invalid argument supplied for foreach() in vimbadmin/library/Zend/Controller/Action/Helper/ViewRenderer.php on line 487
[error] PHP Warning: Exception caught by form: Syntax Error in template "vimbadmin/application/views/admin/form/edit.phtml" on line 60 "{if !isset($modal) || !$modal }" - Unexpected " }", expected one of: "|" , "}" , "*" , "/" , "%" , "+" , "-" , ""&"" , ISIN , ISDIVBY , ISNOTDIVBY , ISEVEN , ISNOTEVEN , ISEVENBY , ISNOTEVENBY , ISODD , ISNOTODD , ISODDBY , ISNOTODDBY , "==" , "!=" , "(>,gt)" , "(<,lt)" , "(>=,ge)" , "(<=,le)" , "===" , "!==" , "(%,mod)" , "(&&,and)" , "(||,or)" , "xor"\nStack Trace:\n#0 /usr/share/php/smarty3/sysplugins/smarty_internal_templateparser.php(2494): Smarty_Internal_TemplateCompilerBase->trigger_template_error()\n#1 /usr/share/php/smarty3/sysplugins/smarty_internal_templateparser.php(2559): Smarty_Internal_Templateparser->yy_syntax_error(8, ' }')\n#2 /usr/share/php/smarty3/sysplugins/smarty_internal_smartytemplatecompiler.php(49): Smarty_Internal_Templateparser->doParse(8, ' }')\n#3 /usr/share/php/smarty3/sysplugins/smarty_internal_templatecompilerbase.php(82): Smarty_Internal_SmartyTemplateComp in /var/www/vimbadmin/library/Zend/Form.php on line 2926

I fixed the problem by:

{if !isset($modal) || !$modal} -- deleting last space

However this problem repeated when tried to add domain!

Adding Fields to main Boxes

Hello,
i am facing a problem. i have added a few fields to the database, updates the ymal schema, modified the list.phtml in mailbox.
for example i have added a field called owner to the database and i have added to the mailbox webpage and i do not have any problem.

what i am trying to do is to add these fields the edit.phtm which we use to add a new MailBox or to edit an exist mailbox.
what i did is to add a filed to it as follow:

{$element->owner->getLabel()} {$element->owner} {include file='form_element_errors.phtml' pTheElement=$element->cc_welcome_email}

which is exactly the same as the other fields. but the problem is that i can not see the fields.
how i can added them in a good way and in the same time to be sure that the data is added to the database.

Thanks

Quota fields should indicate what measure will be used

The quota fields currently look like "Quota: [___x]" It's unclear whether that quota is in bytes, kilobytes, megabytes or whatever.

I suggest that either the labels should be more concise (e.g. Quota (KB):), or the fields should have add-ons (similar to the address field when creating new mailbox).

The system cannot send emails, settings ignored

The system itself cannot send emails (e.g. by means of "Send Settings" button) because it open connection to port 25 and sends "EHLO localhost", instead of port 587 and a fqdn as a EHLO. Obviously:

Sep 26 08:37:44 mail3 postfix/smtpd[22477]: NOQUEUE: reject: RCPT from mail3[123.123.123.123]: 504 5.5.2 : Helo command rejected: need fully-qualified hostname; from=[email protected] to=[email protected] proto=ESMTP helo=

This happens because of "smtpd_recipient_restrictions" in postfix main.cf file:
"reject_non_fqdn_hostname"

Email should be sent through the submission port defined in master.cf

In application.ini I can read:

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; See: http://framework.zend.com/manual/en/zend.mail.smtp-authentication.html
;;
;; Ensure you have a working mail server configuration so the system can
;; send emails:
;;
resources.mailer.smtphost = "mail3.domain.it"
;resources.mailer.username = ""
;resources.mailer.password = "96"
;resources.mailer.auth = ""
;resources.mailer.ssl = ""
resources.mailer.port = "587"

But it doesn't work…

What am I missing? What am I doing wrong?

TIA…

Error in library-init.sh in 2.0.7

There's an extra comment in bin/library-init.sh which causes the following error when you try to run it:

./library-init.sh: line 65: http://smarty-php.googlecode.com/svn/tags/Smarty_3_0_9/distribution/libs: No such file or directory

Fix is:

git diff
diff --git a/bin/library-init.sh b/bin/library-init.sh
index ada8983..2fd66ec 100755
--- a/bin/library-init.sh
+++ b/bin/library-init.sh
@@ -62,8 +62,8 @@ fi
if [[ -e $LIBDIR/Smarty ]]; then
echo Smarty exists - skipping!
else

ZFDebug

[BUG?] wrong URLS to links are provided after logging in.

Hi,

I am logging into vimbadmin via a url that looks like this:
mydomain.com:port/admin

after logging in the urls are like this
mydomain.com/admin.
How can I get it to show/use the correct url:port I originally entered. It's lopping off the port part.

Thanks. :)

How to disable updates check/alert

How can i disable the message that there is new updates for vimbadmin. I'd like to stick to older release number as i'm using a modified version and im manually merging changes.

Switch to using the built-in hash() function for more secure algorithms for password hashing

Dovecot supports more hashing algorithms than currently supported by ViMbAdmin's Mailbox class. Switching over to the hash() function that comes with PHP will enable a large variety of hashing algorithms, notably more secure ones such as sha256 and, theoretically, even better ones in the future as they become available.

I am currently using sha256 as the hashing algorithm for the enhanced security that it offers, and this was the impetus in proposing this enhancement request. I am willing to contribute a patch if this is deemed meritable.

Unable to add [ip.add.re.ss] as a domain

Says it is invalid, it is not.

invalid-domain

RFC822 6.3, RFC1123 5.2.7, and RFC2821 4.5.1 require all mailservers to accept mail to this kind of address.

I need postmaster@[ip.address] to work. Postfix by default accepts mail to its own IP address, however if behind NAT and have a local LAN address, it will not accept mail to its external address.

Support for Internet Explorer 11

ViMBAdmin does not (seem to) support IE 11. As soon as I press on a + button (e.g. to add an alias), the window gets black and the popup I would expect does not come up.

IE 11 dropped the MSIE string from the UserAgent probably causing wrong browser detection.

Work around: use another browser.

Doctrine2 / Postgresql indexes issue

Submitted by
I think i found a problem with doctrine

Following SQL statements are done at create which have the same name:

CREATE INDEX IX_AliasPreference_1 ON alias_pref (Alias_id, attribute, ix);
CREATE INDEX IX_AliasPreference_1 ON domain_pref (Domain_id, attribute, ix);

I searched for this definition and found it in the file ViMbAdmin.ormdesigner

<entity name="AliasPreference" uuid="ecb7d3bf-095b-4207-93be-0645ca2fb077">
      <field name="id" type="bigint" required="true" primary="true" auto-increment="true" uuid="dfbcaa8c-b8a3-432b-b280-aff4f496cae$
      <field name="Alias_id" type="bigint" uuid="73a86289-7aa3-48e7-90c4-c25af97ee269"/>
      <field name="attribute" type="string" size="255" required="true" uuid="b4db6ad1-340c-4727-a1ea-0a48c9ef098c"/>
      <field name="ix" type="integer" default="0" required="true" uuid="013929bc-e981-4e47-96e9-830c53483bf4"/>
      <field name="op" type="string" size="2" default=":=" required="true" uuid="c4d0f66c-7d09-4982-a84d-f0151eb75db9"/>
      <field name="value" type="text" required="true" uuid="5b7d3292-9df0-4193-9743-10180780eaec"/>
      <field name="expire" type="bigint" default="0" required="true" uuid="7ea94f28-a50a-4b71-80aa-cb8ed4f81831"/>
      <index name="IX_AliasPreference_1">
        <index-field name="Alias_id"/>
        <index-field name="attribute"/>
        <index-field name="ix"/>
      </index>
      <orm-attributes>
        <attribute name="repository-class">Repositories\AliasPreference</attribute>
        <attribute name="schema">alias_pref</attribute>
        <attribute name="table">alias_pref</attribute>
      </orm-attributes>
    </entity>
<entity name="DomainPreference" uuid="6f2a163e-900a-4bf5-af83-eb13191ff10e">
      <field name="id" type="bigint" required="true" primary="true" auto-increment="true" uuid="d967b9e7-7c0f-42ce-9064-48b029ee590$
      <field name="Domain_id" type="bigint" uuid="4a052a0f-f14b-46ed-be97-49b79dfeddfc"/>
      <field name="attribute" type="string" size="255" required="true" uuid="24c3dd68-d392-4ee2-a737-e5c8fad08a0c"/>
      <field name="ix" type="integer" default="0" required="true" uuid="6eb0875c-45ad-4947-8e78-2d754b5145fd"/>
      <field name="op" type="string" size="2" default=":=" required="true" uuid="f5f0284e-6b4c-4569-9255-b7a0cc15f5bb"/>
      <field name="value" type="text" required="true" uuid="d286cd76-42b2-4695-96b4-0bd03d853b44"/>
      <field name="expire" type="bigint" default="0" required="true" uuid="8d41cc0f-4c5a-4213-9cdc-28a3ee60cddf"/>
      <index name="IX_AliasPreference_1">
        <index-field name="Domain_id"/>
        <index-field name="attribute"/>
        <index-field name="ix"/>
      </index>
      <orm-attributes>
        <attribute name="repository-class">Repositories\DomainPreference</attribute>
        <attribute name="schema">domain_pref</attribute>
        <attribute name="table">domain_pref</attribute>
      </orm-attributes>
    </entity>

Entities.DomainPreference.dcm.xml:

<?xml version="1.0"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" $
  <entity name="Entities\DomainPreference" repository-class="Repositories\DomainPreference" schema="domain_pref" table="domain_pref$
    <id name="id" type="bigint">
      <generator strategy="AUTO"/>
    </id>
    <field name="attribute" type="string" length="255" nullable="false"/>
    <field name="ix" type="integer" nullable="false"/>
    <field name="op" type="string" length="2" nullable="false"/>
    <field name="value" type="text" nullable="false"/>
    <field name="expire" type="bigint" nullable="false"/>
    <indexes>
      <index name="IX_AliasPreference_1" columns="Domain_id,attribute,ix"/>
    </indexes>
    <many-to-one field="Domain" target-entity="Entities\Domain" inversed-by="Preferences">
      <join-columns>
        <join-column name="Domain_id" referenced-column-name="id"/>
      </join-columns>
    </many-to-one>
  </entity>
</doctrine-mapping>

Changing this to IX_DomainPreference_1 and create is working.

I think this is a copy and paste mistake.

This is causing an error and the create is impossible.

Maybe MySQL accept such things but the most DB systems don't.

ViMbAdmin on non-standard port

Hi,

I've just installed ViMbAdmin 2.2.2 and noticed that there is an issue in running ViMbAdmin on non-standard port, e.g. https://example.com:8443/mailadmin/ (and in my case non-standard alias "mailadmin").
The first page displays without loading proper css - just like plain html (I've included screenshot - after setup an administrator's account).
As you can see, there's no port "8443" on the browser's status bar.

I've done quick workaround by changing the file "library/ViMbAdmin/Controller/Action.php":

        if( isset( $_SERVER['SERVER_NAME'] ) )
            $view->pagebase = "http{$ssl}://{$_SERVER['SERVER_NAME']}" . Zend_Controller_Front::getInstance()->getBaseUrl();

and adding "Server_PORT" to the "pagebase":

        if( isset( $_SERVER['SERVER_NAME'] ) )
            $view->pagebase = "http{$ssl}://{$_SERVER['SERVER_NAME']}:{$_SERVER['SERVER_PORT']}" . Zend_Controller_Front::getInstance()->getBaseUrl();

But I think there should be some checks before, e.g. set the port to other variable in case we are running on non-standard port.
vimbadmin-bug-02

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.