Homepage | Products | OX Knowledge Base | Support | Try Now | Contact | Company
OX Logo
Results 1 to 8 of 8
  1. #1
    Join Date
    Mar 2015
    Posts
    27

    Question Same Domain - different Context: How to add users to indipendent context

    Hi!

    How should this be done:

    I have 2 user: "user1" and "user2"
    Both have the same domain: "domain.com" and their email is "user1@domain.com" and "user2@domain.com"

    Both should have their own area in their own context. Problem is the mapping. I can add a mapping "domain.com" to one context, but not simultaneously to the second context.

    What is the best way? Is it possible to switch off the mapping? Why is it not possible to use the whole email as mapping?


    ---

    Nochmal auf deutsch:

    Wenn ich 2 User habe die die selbe Domain nutzen, wie kann man beiden trotzdem einen eigenen Context zuordnen? Es geht darum, dass jeder der User seinen eigenen Drive-Speicherplatz bekommt und sich das nicht teilen muss. Aber die Domain und Domain der E-Mail Adresse bleibt gleich.
    Mit dem Mapping oder dem Context-Namen geht das ja nicht, da man nicht mehrmals die selbe Domain

    mappen kann. Kann man das mapping abschalten? Könnte man die ganze E-Mail Adresse als Mapping nutzen?

    dann könnte man ja mehrere Adressen als Mapping eintragen wenn man dann doch mal mehrere User pro Context nutzen möchte.

  2. #2
    Join Date
    Feb 2008
    Location
    Southern Bavaria - where others spend their vacations :)
    Posts
    129

    Default

    Why not separating the storage with group/user rights for personal or public drive directories?

    To use more contexts with identical mail domains use this workaround with domain alias and mail aliases

    The user login name can be different to the main mail address.
    Context1: main domain "domain1", user name for login and as mailaddress: userA@domain1
    Context2: main domain "domain2," user name for the ox login: userB@domain2, user mail adress alias: userB@domain1
    UserB has a different login domain but his default mail address is domain1

    HTH
    pro-ite

  3. #3
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    494

    Default

    If the above suggestion is not sufficient you would have to use a modified auth bundle and another concept to identify and map users to contexts.
    This would involve some Java coding knowledge though.

  4. #4
    Join Date
    Feb 2008
    Location
    Southern Bavaria - where others spend their vacations :)
    Posts
    129

    Exclamation A high risk

    Quote Originally Posted by Wolfgang Rosenauer View Post
    If the above suggestion is not sufficient you would have to use a modified auth bundle and another concept to identify and map users to contexts.
    This would involve some Java coding knowledge though.
    What!? We seldom discuss such ideas public. But this is ....

    I disagree: we tried several add-ons and a recurring lack is the corruption after updates. This happens also sometimes with OX supported opptions! The securing and trimming of the self made code to prevent bad effects after updates is a challange.

    A broken log in after updates would break the connect for the users. It's a high risk. So it's tricky and not recommendable to add code in such sensible areas if you need separated data.
    Last edited by pro-ite; 08-17-2015 at 09:17 AM.

  5. #5
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    494

    Default

    Hmm, you are exaggerating I think but yes, there is some risk in case of such customizations. The auth API though is very small and pretty stable. What I just said was that if the proposed workaround is not sufficient then there is another way.
    I wrote my auth plugin in 2010 and had to update it only once since because of an api change. In any case any acceptable option w/o adding custom code is preferred obviously.

  6. #6
    Join Date
    Feb 2008
    Location
    Southern Bavaria - where others spend their vacations :)
    Posts
    129

    Default

    Quote Originally Posted by Wolfgang Rosenauer View Post
    I wrote my auth plugin
    What is it: a auth plugin? And also optional for content separation? Sounds great if your plugin works/can be configured also as content separation. Since 2010? That sounds like real good stuff
    I'm nosey. Would you please post your plugin for the community? Or if available a common usable snippet?

  7. #7
    Join Date
    Sep 2007
    Location
    Germany
    Posts
    494

    Default

    Not sure what you mean by "content separation". The original question was how to implement to have separate contexts for the same maildomain.
    Since the loginname <-> uid, cid mapping can be implemented in the auth plugin this would be possible there. Also I don't need to post it here since all the examples are open source. Get the bundles for the imap, database and ldap authentication plugins and you have plenty examples. My plugin is tailored to my environment and is based on the open-xchange-authentication-imap plugin but has like 10 more lines.

  8. #8
    Join Date
    Feb 2008
    Location
    Southern Bavaria - where others spend their vacations :)
    Posts
    129

    Default

    Ooops, wrong word in our last post: content!
    No, not content: we ment CONTEXT separation. Dear Wolfgang Rosenauer. Thank you for specifying what can be done with loginname/uid. Auth check for each user with his id/ loginname is an option, I agree.
    Last edited by pro-ite; 08-24-2015 at 08:38 AM.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •