One-stop user control

Discussion in 'Tips/Tricks/Mods' started by shdwdrgn, Nov 27, 2009.

  1. shdwdrgn

    shdwdrgn New Member

    Are there any mods available or in the works to tie together mail/shell/ftp users into a single interface? It seems like with a little work to the Email Mailbox page, when a new mailbox is created, corresponding shell_user and ftp_user entries could also be added. Drop a couple of 'active' checkboxes on the page to enable/disable those types of logins, and you have a simplified, universal user control page.

    Along that same line, has there been any consideration for including UID/GID fields for shell users, and using pam-mysql logins rather than having these users added to /etc/passwd?
     
  2. Mark_NL

    Mark_NL New Member

    afaik that kind of stuff is removed from ispc3 .. it's all in ispc2 .. for me that was a big dissapointment, since co workers of mine manage those accounts, i just keep the servers alive ;) .. with ispc3 they can't do that anymore, so i'm sticking with ispc2 :)
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    You seem not to be up to date with the ispconfig 3 development. All functions from ispconfig 2 plus a lot more are implemented in ispconfig 3 and the mailuser login has been implemented as roundcube plugin so that your email users are able to manage their autorespoinders etc. themself.
     
  4. Mark_NL

    Mark_NL New Member

    aaah sweet, that's good news Till!

    indeed i've been slacking on ispc3 dev tracking, just been swamped at work to follow it all ;) I'll have a look at the new version soon.
     
  5. shdwdrgn

    shdwdrgn New Member

    In the file /usr/local/ispconfig/interface/web/mail/templates/mail_user_mailbox_edit.htm I added the following lines:
    Code:
    <div class="ctrlHolder">
      <label for="uid">{tmpl_var name='user_uid_txt'}</label>
      <input name="uid" id="uid" value="{tmpl_var name='uid'}" size="30" maxlength="5" type="text" class="textInput formLengthLimit" /><p class="formInputUnity"></p>
    </div>
    When I pull up a mail user, it does show the expected value (5000) for the vmail user, however changing the value does not update the database. Could you please point me in the right direction on what I need to change so that the database is updated when I enter a new value?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    You can not run the mailsystem under different userid's. ISPConfig uses virtual mailusers and the mailuser for all accounts have the name vmail. Thats why there is no field in the interface, so you should remove the code that you added to the template. If you want to use linux system users for email, use ispconfig 2 and not 3.
     
    Last edited: Nov 28, 2009
  7. shdwdrgn

    shdwdrgn New Member

    Yes I realize ispconfig3 runs with virtual users, but this is only one of a handful of changes I'm doing. I'm also using the gid and homedir fields, and have libnss-mysql pulling login info from the mail_user table. The changes I have made thus far are pretty minor, except I added a 'shell' column to the table.

    The only issue I have right now is that I have to manually change these values in the database, as they are not updated when I change them from the ispconfig interface. So I ask again, could you please point me to where in the code the other values from this page get entered back into the database, so I can add my own lines to update these entries?
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

  9. shdwdrgn

    shdwdrgn New Member

    Great info, thanks! I'm making good progress now. Have a single form in ispconfig to create email/shell/ftp accounts. All info is being set in the database now. I have all ispconfig users logging in with their full email address (which was a pain... discovered getty doesn't accept the @ key, but mingetty does).

    So now I just need to smooth out my interface... make sure proper permissions are set with directories, set some default entries when a new user is created, that kind of stuff. Once I get it all smoothed out, I'll write up a thread on the conversion process.
     

Share This Page