Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: How do people do the automounts now

  1. #1
    Join Date
    Sep 2009
    Location
    UK
    Posts
    310

    Default How do people do the automounts now

    Just a general question. Now the autofs module has gone
    from Yast I was wondering if you have automounts in LDAP
    how do people actually do it now ?

    We wrote our own python thing that combines creating users
    and automounts in LDAP but it was a bit of a pain.

    Just curious - we can't be the only people in the world using
    LDAP for user accounts and automap

    Ta

    Mal

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    15,674
    Blog Entries
    3

    Default Re: How do people do the automounts now

    Oops! I never noticed that there was an "autofs" module in Yast. I just used "autofs".

    I edited "/etc/auto.master" and any files that referred to. Then I used the service manager to enable and start "autofs" and "rpcbind".

    Okay, I'm not using LDAP. But I think that's automatic if "/etc/nsswitch.conf" is suitably configured.
    openSUSE Leap 15.3; KDE Plasma 5.18.6;

  3. #3
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,704
    Blog Entries
    1

    Default Re: How do people do the automounts now

    Oops! I never noticed that there was an "autofs" module in Yast. I just used "autofs".
    Same here.

    @interele: Are there any particular aspects that this module did for automounting with LDAP which are missed, or harder without it? (I'm not sure what it did that might have made configuration easier.)

  4. #4
    Join Date
    Sep 2009
    Location
    UK
    Posts
    310

    Default Re: How do people do the automounts now

    Yes, using local files are OK but if you have a central LDAP server
    for all the machines/users/automount/etc there is now no nice way to
    add automount entries We have kept an old Suse 11 box running as our
    LDAP server as that still has it but it's getting a bit ratty now. The only
    way apart from my 'wonderful' python program ( it works, but a decent
    programmer would probably cry if they looked at it - if python had 'goto'
    I would have probably used it ) is to build a ldif file and use ldapadd
    which is incredibly user unfriendly.

    I asked about this when it was dropped - when Yast was redeveloped
    some time ago - and I was told they didn't have the resources to port it.
    Which I suppose is fair enough but it is rather like Microsoft saying
    'Well we've stopped supporting shared drives'.

    This is one of my personal gripes. How are we going to get Linux/openSuse
    into schools ( as we are ) or small to medium businesses if you don't
    have a gui/user friendly way to add home directories. You can't really
    put the auto.master and auto.home files on hundreds of machines particularly
    if you have people coming and going all the time.

    Well, that's my moan for Friday

    Best wishes

    Mal

  5. #5
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,576

    Lightbulb Re: How do people do the automounts now

    After some searching, found it, with YaST information: openSUSE Security Guide -->> Authentication: <https://doc.opensuse.org/documentati...rity.ldap.html>.
    Which doesn't really help with your auto-mount issue but, at least the user management is explained there.

    For remote simultaneous system administration, take a look at the "Salt" package: <https://software.opensuse.org/package/salt>.
    There was a feature announcement for Leap 42.3: <https://en.opensuse.org/Features_42.3#AutoYaST>:
    But the new jewel of the AutoYaST crown is its brand new integration with SaltStack and other configuration management systems introduced by the new addition to the Leap family: the yast2-configuration-manager package. Now AutoYaST can take care of the system installation (partitioning, network setup, etc.) and then delegate the system configuration to one of those widely used external tools.
    <https://github.com/yast/yast-configuration-management> -- possibly part of AutoYaST2: <https://software.opensuse.org/package/autoyast2>.

    By the way, these days it's "openLDAP" and, there's this bit of SUSE (not 'open') information: <https://www.netiq.com/communities/co...ement-dummies/>.

    I was beginning to think that, "Kolab" <https://kolab.org/> would be the only way to go but, that may well be an overkill.
    And, you're correct (no longer politically correct to say "right" ), it is difficult to find "cheap" LDAP administration tools -- the tools in the market-place are mostly bound to the commercial Linux distributions, such as "SUSE".

    Maybe someone in the SUSE sponsored openSUSE admin world, could be asked to provide information on how the openSUSE user environment is managed; I only know that, the introduction of SDDM caused more than a little bit of trouble with the login screens having to deal with the amount of users in the openSUSE office and network.

  6. #6
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,704
    Blog Entries
    1

    Default Re: How do people do the automounts now

    Quote Originally Posted by interele View Post
    Yes, using local files are OK but if you have a central LDAP server
    for all the machines/users/automount/etc there is now no nice way to
    add automount entries We have kept an old Suse 11 box running as our
    LDAP server as that still has it but it's getting a bit ratty now. The only
    way apart from my 'wonderful' python program ( it works, but a decent
    programmer would probably cry if they looked at it - if python had 'goto'
    I would have probably used it ) is to build a ldif file and use ldapadd
    which is incredibly user unfriendly.
    Thanks for clarifying further. I gleamed a bit of this tedious process from reading this Ubuntu AutofsLDAP guide and this ancient Novell coolsolutions guide. The ldif creation/editing is indeed tedious, and it would be good to have a minimal GUI utility to help with this for large-scale use.

    Well, that's my moan for Friday

    Best wishes

    Mal
    Perfectly valid IMHO.

  7. #7
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,704
    Blog Entries
    1

    Default Re: How do people do the automounts now

    I wonder if FusionDirectory (open source project for LDAP administration with web interface) might be helpful here?

    https://www.fusiondirectory.org/

    It has a quick demo to let one get a feel for it. I had a quick look with respect adding/editing users with their online demo, but I don't know nearly enough to evaluate properly.

    openSUSE packages available:
    https://software.opensuse.org/package/fusiondirectory
    FusionDirectory is a combination of system-administrator and end-user web interface, designed to handle LDAP based setups. Provided is access to posix, shadow, samba, proxy, and Kerberos accounts. It is able to manage the Postfix/Cyrus server combination and can write user adapted sieve scripts.

  8. #8
    Join Date
    Sep 2009
    Location
    UK
    Posts
    310

    Default Re: How do people do the automounts now

    Now that does look interesting :-)
    Many thanks for digging that out
    I will have a go on Monday

    Ta

    Mal

  9. #9
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    23,704
    Blog Entries
    1

    Default Re: How do people do the automounts now

    Quote Originally Posted by interele View Post
    Now that does look interesting :-)
    Many thanks for digging that out
    I will have a go on Monday

    Ta

    Mal
    Very good. I'd be interested in your getting your feedback with this.

  10. #10
    Join Date
    Sep 2009
    Location
    UK
    Posts
    310

    Default Re: How do people do the automounts now

    Well, it's interesting. If you were keeping everything including the kitchen sink in LDAP
    then it's probably the tool for you. If you are looking just to replace the missing autofs
    module then it's massive overkill.

    Many thanks for finding this as it's something that I think will be right for a lot of people.

    I will however fiddle with my python script and make it less embarrassing as it just makes
    users and home directories and nothing else. The next trick will be to automatically make
    the home directory on a remote NFS server as the user is made... I have no idea how to
    do that currently.

    If any one wants my script ( providing they don't mock my code ) they are welcome to a copy.

    Many thanks

    Mal

Page 1 of 2 12 LastLast

Posting Permissions

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