using Yast2 via command line to add users - Suse

This is a discussion on using Yast2 via command line to add users - Suse ; I have a SuSE version 8.2 server using local authentication that I am going to migrate to a new 10.2 version server using ldap authentication. I have well over 300 samba users and nearly 200 groups that I need to ...

+ Reply to Thread
Results 1 to 10 of 10

Thread: using Yast2 via command line to add users

  1. using Yast2 via command line to add users

    I have a SuSE version 8.2 server using local authentication that I am
    going to migrate to a new 10.2 version server using ldap
    authentication. I have well over 300 samba users and nearly 200 groups
    that I need to migrate to this new machine. I would like to be able to
    script the user and group adds. The ldap server is a SLES 9 server. I
    normally use the YAST2 gui to add users and groups and this also
    updates the samba schema. I have tried to use yast2 via the command
    line but it complains of my syntax even though I have tried as many
    variations as I can think of based on the help produced from:
    /sbin/yast2 users longhelp

    Here is a typical attempt:
    /sbin/yast2 users add verbose username "curt" cn "Curtis Grote"
    password "passwd" no_home shell "/bin/false" gid "1026" groups "1032"
    type "ldap"

    The error is "unknown option for command add: /sbin/false". No matter
    what I remove none of the options seem to work.

    Has anyone successfully used yast2 in the batch mode to add users to
    an ldap server supporting the samba schema? Does anyone have a better
    idea as to how I can add users and groups in a batch mode while
    ensuring the samba schema is also updated?

    Any help is greatly appreciated.

    Curtis Grote
    Memorial Hospital


  2. Re: using Yast2 via command line to add users

    You need equal signs "=" between the options.
    /sbin/yast2 users add verbose username="curt" cn="Curtis Grote"
    password="passwd" no_home shell="/bin/false" gid="1026" groups="1032"
    type="ldap"


    wrote in message
    news:1190131702.911378.288290@22g2000hsm.googlegro ups.com...
    >I have a SuSE version 8.2 server using local authentication that I am
    > going to migrate to a new 10.2 version server using ldap
    > authentication. I have well over 300 samba users and nearly 200 groups
    > that I need to migrate to this new machine. I would like to be able to
    > script the user and group adds. The ldap server is a SLES 9 server. I
    > normally use the YAST2 gui to add users and groups and this also
    > updates the samba schema. I have tried to use yast2 via the command
    > line but it complains of my syntax even though I have tried as many
    > variations as I can think of based on the help produced from:
    > /sbin/yast2 users longhelp
    >
    > Here is a typical attempt:
    > /sbin/yast2 users add verbose username "curt" cn "Curtis Grote"
    > password "passwd" no_home shell "/bin/false" gid "1026" groups "1032"
    > type "ldap"
    >
    > The error is "unknown option for command add: /sbin/false". No matter
    > what I remove none of the options seem to work.
    >
    > Has anyone successfully used yast2 in the batch mode to add users to
    > an ldap server supporting the samba schema? Does anyone have a better
    > idea as to how I can add users and groups in a batch mode while
    > ensuring the samba schema is also updated?
    >
    > Any help is greatly appreciated.
    >
    > Curtis Grote
    > Memorial Hospital
    >




  3. Re: using Yast2 via command line to add users

    OK a better way it should have been said: You need equal signs '=' between
    the options and their values.
    "Andrew Madsen" wrote in message
    news:IrTHi.107073$ax1.70694@bgtnsc05-news.ops.worldnet.att.net...
    > You need equal signs "=" between the options.
    > /sbin/yast2 users add verbose username="curt" cn="Curtis Grote"
    > password="passwd" no_home shell="/bin/false" gid="1026" groups="1032"
    > type="ldap"
    >
    >
    > wrote in message
    > news:1190131702.911378.288290@22g2000hsm.googlegro ups.com...
    >>I have a SuSE version 8.2 server using local authentication that I am
    >> going to migrate to a new 10.2 version server using ldap
    >> authentication. I have well over 300 samba users and nearly 200 groups
    >> that I need to migrate to this new machine. I would like to be able to
    >> script the user and group adds. The ldap server is a SLES 9 server. I
    >> normally use the YAST2 gui to add users and groups and this also
    >> updates the samba schema. I have tried to use yast2 via the command
    >> line but it complains of my syntax even though I have tried as many
    >> variations as I can think of based on the help produced from:
    >> /sbin/yast2 users longhelp
    >>
    >> Here is a typical attempt:
    >> /sbin/yast2 users add verbose username "curt" cn "Curtis Grote"
    >> password "passwd" no_home shell "/bin/false" gid "1026" groups "1032"
    >> type "ldap"
    >>
    >> The error is "unknown option for command add: /sbin/false". No matter
    >> what I remove none of the options seem to work.
    >>
    >> Has anyone successfully used yast2 in the batch mode to add users to
    >> an ldap server supporting the samba schema? Does anyone have a better
    >> idea as to how I can add users and groups in a batch mode while
    >> ensuring the samba schema is also updated?
    >>
    >> Any help is greatly appreciated.
    >>
    >> Curtis Grote
    >> Memorial Hospital
    >>

    >
    >




  4. Re: using Yast2 via command line to add users

    On Sep 18, 12:09 pm, "Andrew Madsen" davidson.com> wrote:
    > OK a better way it should have been said: You need equal signs '=' between
    > the options and their values."Andrew Madsen" wrote in message
    >
    > news:IrTHi.107073$ax1.70694@bgtnsc05-news.ops.worldnet.att.net...
    >
    > > You need equal signs "=" between the options.
    > > /sbin/yast2 users add verbose username="curt" cn="Curtis Grote"
    > > password="passwd" no_home shell="/bin/false" gid="1026" groups="1032"
    > > type="ldap"


    Thank you very much for the reply. That has gotten me one step
    farther. Still getting errors, but at least they are different errors.

    Curtis Grote
    Memorial Hospital



  5. Re: using Yast2 via command line to add users

    What other errors are you getting?
    wrote in message
    news:1190146695.375237.159000@50g2000hsm.googlegro ups.com...
    > On Sep 18, 12:09 pm, "Andrew Madsen" > davidson.com> wrote:
    >> OK a better way it should have been said: You need equal signs '='
    >> between
    >> the options and their values."Andrew Madsen"
    >> wrote in message
    >>
    >> news:IrTHi.107073$ax1.70694@bgtnsc05-news.ops.worldnet.att.net...
    >>
    >> > You need equal signs "=" between the options.
    >> > /sbin/yast2 users add verbose username="curt" cn="Curtis Grote"
    >> > password="passwd" no_home shell="/bin/false" gid="1026" groups="1032"
    >> > type="ldap"

    >
    > Thank you very much for the reply. That has gotten me one step
    > farther. Still getting errors, but at least they are different errors.
    >
    > Curtis Grote
    > Memorial Hospital
    >
    >




  6. Re: using Yast2 via command line to add users


    Andrew Madsen wrote:
    > What other errors are you getting?


    Andrew,

    Thanks again for replying to my post. Here are what I think are the
    important lines from /var/log/YaST2/y2log after running the following
    command (as root):
    /sbin/yast2 users add verbose username="curt" cn="Curtis Grote"
    password="istech" no_home shell="/bin/false" gid="1026" groups="1032"
    type="ldap"

    2007-09-19 11:48:40 <1> ldap(6367) [YCP] clients/users.ycp:10
    ----------------------------------------
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] clients/users.ycp:11 Users
    module started
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    option add
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    option verbose
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    option username=curt
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    option cn=Curtis Grote
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    option password=istech
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    option no_home
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    option shell=/bin/false
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    option gid=1026
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    option groups=1032
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    option type=ldap
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    213 .product.features.USE_DESKTOP_SCHEDULER: 'yes'
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    213 .product.features.IO_SCHEDULER: 'as'
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    213 .product.features.ENABLE_AUTOLOGIN: 'yes'
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    213 .product.features.EVMS_CONFIG: 'no'
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    213 .product.features.FORCE_STATIC_IP: 'no'
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] clients/users.ycp:56 Starting
    with arguments: ["add", "verbose", "username=curt", "cn=Curtis Grote",
    "password=iste
    ch", "no_home", "shell=/bin/false", "gid=1026", "groups=1032",
    "type=ldap"]
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] CommandLine.ycp:836
    ----------------------------------------
    2007-09-19 11:48:40 <1> ldap(6367) [YCP] CommandLine.ycp:837 Command
    line interface started
    Initializing
    2007-09-19 11:48:41 <1> ldap(6367) [wfm] Y2WFMComponent.cc(import):579
    Y2WFMComponent::import (Report)
    2007-09-19 11:48:43 <1> ldap(6367) [wfm] Y2WFMComponent.cc(import):579
    Y2WFMComponent::import (UsersUI)
    .. . . several lines omitted . . .
    2007-09-19 11:48:43 <1> ldap(6367) [wfm] Y2WFMComponent.cc(import):579
    Y2WFMComponent::import (Directory)
    2007-09-19 11:48:43 <1> ldap(6367) [Perl] modules/
    UsersPlugins.pm(UsersPlugins::Read):49 Available plugin:
    UsersPluginSamba
    2007-09-19 11:48:43 <1> ldap(6367) [Perl] modules/
    UsersPlugins.pm(UsersPlugins::Read):49 Available plugin:
    UsersPluginSambaGroups
    2007-09-19 11:48:43 <1> ldap(6367) [Perl] modules/
    UsersPlugins.pm(UsersPlugins::Read):49 Available plugin:
    UsersPluginLDAPAll
    Ready
    Quitting (without changes)
    2007-09-19 11:48:44 <1> ldap(6367) [YCP] CommandLine.ycp:943
    Commandline interface finished
    2007-09-19 11:48:44 <1> ldap(6367) [YCP] CommandLine.ycp:944
    ----------------------------------------
    2007-09-19 11:48:44 <1> ldap(6367) [YCP] clients/users.ycp:458 Users
    module finished with false

    It successfully recognizes that I want to enter the 'users' mode, but
    for some reason does not recognize 'add' as a valid command. Hence
    everything else fails. One of the aggravating parts of this is that I
    can see in the log that the Samba plugins are being loaded, indicating
    that if this would work the Samba schema parts would indeed also be
    updated. If I perform a "/sbin/yast2 users list ldap" it successfully
    recognizes 'list' as a command and prints the ldap users.

    I performed an "Online Update" this morning on the SLES 9 server to
    make sure all updates were applied. Any ideas are appreciated.

    Curtis Grote
    Memorial Hospital


  7. Re: using Yast2 via command line to add users

    You mentioned earlier that you were scripting the process. Is the command
    you ran coming from that script or was it direct input from the command
    line? A thing to try is to copy the y2log to bkpy2log and delete the y2log
    (or move it to some other file) then run the command from the command line
    and see if it works. I just ran the command from the command line and it
    worked just fine. Well I failed on the ldap value because I do not have the
    LDAP module running.

    If it works from direct input I would suspect that your script is not
    handing off the values correctly.
    wrote in message
    news:1190227181.774884.82760@o80g2000hse.googlegro ups.com...
    >
    > Andrew Madsen wrote:
    >> What other errors are you getting?

    >
    > Andrew,
    >
    > Thanks again for replying to my post. Here are what I think are the
    > important lines from /var/log/YaST2/y2log after running the following
    > command (as root):
    > /sbin/yast2 users add verbose username="curt" cn="Curtis Grote"
    > password="istech" no_home shell="/bin/false" gid="1026" groups="1032"
    > type="ldap"
    >
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] clients/users.ycp:10
    > ----------------------------------------
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] clients/users.ycp:11 Users
    > module started
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    > option add
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    > option verbose
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    > option username=curt
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    > option cn=Curtis Grote
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    > option password=istech
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    > option no_home
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    > option shell=/bin/false
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    > option gid=1026
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    > option groups=1032
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    > option type=ldap
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    > 213 .product.features.USE_DESKTOP_SCHEDULER: 'yes'
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    > 213 .product.features.IO_SCHEDULER: 'as'
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    > 213 .product.features.ENABLE_AUTOLOGIN: 'yes'
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    > 213 .product.features.EVMS_CONFIG: 'no'
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    > 213 .product.features.FORCE_STATIC_IP: 'no'
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] clients/users.ycp:56 Starting
    > with arguments: ["add", "verbose", "username=curt", "cn=Curtis Grote",
    > "password=iste
    > ch", "no_home", "shell=/bin/false", "gid=1026", "groups=1032",
    > "type=ldap"]
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] CommandLine.ycp:836
    > ----------------------------------------
    > 2007-09-19 11:48:40 <1> ldap(6367) [YCP] CommandLine.ycp:837 Command
    > line interface started
    > Initializing
    > 2007-09-19 11:48:41 <1> ldap(6367) [wfm] Y2WFMComponent.cc(import):579
    > Y2WFMComponent::import (Report)
    > 2007-09-19 11:48:43 <1> ldap(6367) [wfm] Y2WFMComponent.cc(import):579
    > Y2WFMComponent::import (UsersUI)
    > . . . several lines omitted . . .
    > 2007-09-19 11:48:43 <1> ldap(6367) [wfm] Y2WFMComponent.cc(import):579
    > Y2WFMComponent::import (Directory)
    > 2007-09-19 11:48:43 <1> ldap(6367) [Perl] modules/
    > UsersPlugins.pm(UsersPlugins::Read):49 Available plugin:
    > UsersPluginSamba
    > 2007-09-19 11:48:43 <1> ldap(6367) [Perl] modules/
    > UsersPlugins.pm(UsersPlugins::Read):49 Available plugin:
    > UsersPluginSambaGroups
    > 2007-09-19 11:48:43 <1> ldap(6367) [Perl] modules/
    > UsersPlugins.pm(UsersPlugins::Read):49 Available plugin:
    > UsersPluginLDAPAll
    > Ready
    > Quitting (without changes)
    > 2007-09-19 11:48:44 <1> ldap(6367) [YCP] CommandLine.ycp:943
    > Commandline interface finished
    > 2007-09-19 11:48:44 <1> ldap(6367) [YCP] CommandLine.ycp:944
    > ----------------------------------------
    > 2007-09-19 11:48:44 <1> ldap(6367) [YCP] clients/users.ycp:458 Users
    > module finished with false
    >
    > It successfully recognizes that I want to enter the 'users' mode, but
    > for some reason does not recognize 'add' as a valid command. Hence
    > everything else fails. One of the aggravating parts of this is that I
    > can see in the log that the Samba plugins are being loaded, indicating
    > that if this would work the Samba schema parts would indeed also be
    > updated. If I perform a "/sbin/yast2 users list ldap" it successfully
    > recognizes 'list' as a command and prints the ldap users.
    >
    > I performed an "Online Update" this morning on the SLES 9 server to
    > make sure all updates were applied. Any ideas are appreciated.
    >
    > Curtis Grote
    > Memorial Hospital
    >




  8. Re: using Yast2 via command line to add users

    Damn! I have to quit doing four things at once. The reson for the rename is
    so a new log gets created with just the output of the command. That way it
    cuts it down to a couple of hundred lines instead of thousands. If need be
    you could post the smaller log.
    "Andrew Madsen" wrote in message
    news:8bfIi.572238$p47.261795@bgtnsc04-news.ops.worldnet.att.net...
    > You mentioned earlier that you were scripting the process. Is the command
    > you ran coming from that script or was it direct input from the command
    > line? A thing to try is to copy the y2log to bkpy2log and delete the y2log
    > (or move it to some other file) then run the command from the command line
    > and see if it works. I just ran the command from the command line and it
    > worked just fine. Well I failed on the ldap value because I do not have
    > the LDAP module running.
    >
    > If it works from direct input I would suspect that your script is not
    > handing off the values correctly.
    > wrote in message
    > news:1190227181.774884.82760@o80g2000hse.googlegro ups.com...
    >>
    >> Andrew Madsen wrote:
    >>> What other errors are you getting?

    >>
    >> Andrew,
    >>
    >> Thanks again for replying to my post. Here are what I think are the
    >> important lines from /var/log/YaST2/y2log after running the following
    >> command (as root):
    >> /sbin/yast2 users add verbose username="curt" cn="Curtis Grote"
    >> password="istech" no_home shell="/bin/false" gid="1026" groups="1032"
    >> type="ldap"
    >>
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] clients/users.ycp:10
    >> ----------------------------------------
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] clients/users.ycp:11 Users
    >> module started
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    >> option add
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    >> option verbose
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    >> option username=curt
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    >> option cn=Curtis Grote
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    >> option password=istech
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    >> option no_home
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    >> option shell=/bin/false
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    >> option gid=1026
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    >> option groups=1032
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Mode.ycp:325 skipping unknown
    >> option type=ldap
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    >> 213 .product.features.USE_DESKTOP_SCHEDULER: 'yes'
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    >> 213 .product.features.IO_SCHEDULER: 'as'
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    >> 213 .product.features.ENABLE_AUTOLOGIN: 'yes'
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    >> 213 .product.features.EVMS_CONFIG: 'no'
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] Misc.ycp:
    >> 213 .product.features.FORCE_STATIC_IP: 'no'
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] clients/users.ycp:56 Starting
    >> with arguments: ["add", "verbose", "username=curt", "cn=Curtis Grote",
    >> "password=iste
    >> ch", "no_home", "shell=/bin/false", "gid=1026", "groups=1032",
    >> "type=ldap"]
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] CommandLine.ycp:836
    >> ----------------------------------------
    >> 2007-09-19 11:48:40 <1> ldap(6367) [YCP] CommandLine.ycp:837 Command
    >> line interface started
    >> Initializing
    >> 2007-09-19 11:48:41 <1> ldap(6367) [wfm] Y2WFMComponent.cc(import):579
    >> Y2WFMComponent::import (Report)
    >> 2007-09-19 11:48:43 <1> ldap(6367) [wfm] Y2WFMComponent.cc(import):579
    >> Y2WFMComponent::import (UsersUI)
    >> . . . several lines omitted . . .
    >> 2007-09-19 11:48:43 <1> ldap(6367) [wfm] Y2WFMComponent.cc(import):579
    >> Y2WFMComponent::import (Directory)
    >> 2007-09-19 11:48:43 <1> ldap(6367) [Perl] modules/
    >> UsersPlugins.pm(UsersPlugins::Read):49 Available plugin:
    >> UsersPluginSamba
    >> 2007-09-19 11:48:43 <1> ldap(6367) [Perl] modules/
    >> UsersPlugins.pm(UsersPlugins::Read):49 Available plugin:
    >> UsersPluginSambaGroups
    >> 2007-09-19 11:48:43 <1> ldap(6367) [Perl] modules/
    >> UsersPlugins.pm(UsersPlugins::Read):49 Available plugin:
    >> UsersPluginLDAPAll
    >> Ready
    >> Quitting (without changes)
    >> 2007-09-19 11:48:44 <1> ldap(6367) [YCP] CommandLine.ycp:943
    >> Commandline interface finished
    >> 2007-09-19 11:48:44 <1> ldap(6367) [YCP] CommandLine.ycp:944
    >> ----------------------------------------
    >> 2007-09-19 11:48:44 <1> ldap(6367) [YCP] clients/users.ycp:458 Users
    >> module finished with false
    >>
    >> It successfully recognizes that I want to enter the 'users' mode, but
    >> for some reason does not recognize 'add' as a valid command. Hence
    >> everything else fails. One of the aggravating parts of this is that I
    >> can see in the log that the Samba plugins are being loaded, indicating
    >> that if this would work the Samba schema parts would indeed also be
    >> updated. If I perform a "/sbin/yast2 users list ldap" it successfully
    >> recognizes 'list' as a command and prints the ldap users.
    >>
    >> I performed an "Online Update" this morning on the SLES 9 server to
    >> make sure all updates were applied. Any ideas are appreciated.
    >>
    >> Curtis Grote
    >> Memorial Hospital
    >>

    >
    >




  9. Re: using Yast2 via command line to add users


    Andrew Madsen wrote:
    > > You mentioned earlier that you were scripting the process. Is the command
    > > you ran coming from that script or was it direct input from the command
    > > line? A thing to try is to copy the y2log to bkpy2log and delete the y2log
    > > (or move it to some other file) then run the command from the command line
    > > and see if it works. I just ran the command from the command line and it
    > > worked just fine. Well I failed on the ldap value because I do not have
    > > the LDAP module running.


    Andrew,

    Thanks again for replying to my post. Yesterday I tried the "/sbin/
    yast2 users longhelp" from a 10.2 machine and noticed an extra
    parameter in the 'add' list: 'ldap_password'. I had been wondering how
    the user add would be authenticating into ldap and was expecting a
    prompt for it. This made me suspect a bug, so this morning I updated
    the server from version 9 to version 10 SP1. I first ran the
    "longhelp" and noticed that the "ldap_password" parameter was now
    documented. I then ran the "users add" command adding the
    "ldap_password" and the command finished successfully creating the
    user account, and very importantly updating the samba schema
    information as well.

    Thank you very much for all the help you gave in trying to get this
    resolved. On what version of SuSE were you running your commands? If
    we ever meet up I owe you a beer!

    Curtis Grote
    Memorial Hospital


    Curtis Grote
    Memorial Hospital


  10. Re: using Yast2 via command line to add users

    I am running 10 SP1 and I drink RUM!!
    wrote in message
    news:1190302482.259636.204930@k79g2000hse.googlegr oups.com...
    >
    > Andrew Madsen wrote:
    >> > You mentioned earlier that you were scripting the process. Is the
    >> > command
    >> > you ran coming from that script or was it direct input from the command
    >> > line? A thing to try is to copy the y2log to bkpy2log and delete the
    >> > y2log
    >> > (or move it to some other file) then run the command from the command
    >> > line
    >> > and see if it works. I just ran the command from the command line and
    >> > it
    >> > worked just fine. Well I failed on the ldap value because I do not have
    >> > the LDAP module running.

    >
    > Andrew,
    >
    > Thanks again for replying to my post. Yesterday I tried the "/sbin/
    > yast2 users longhelp" from a 10.2 machine and noticed an extra
    > parameter in the 'add' list: 'ldap_password'. I had been wondering how
    > the user add would be authenticating into ldap and was expecting a
    > prompt for it. This made me suspect a bug, so this morning I updated
    > the server from version 9 to version 10 SP1. I first ran the
    > "longhelp" and noticed that the "ldap_password" parameter was now
    > documented. I then ran the "users add" command adding the
    > "ldap_password" and the command finished successfully creating the
    > user account, and very importantly updating the samba schema
    > information as well.
    >
    > Thank you very much for all the help you gave in trying to get this
    > resolved. On what version of SuSE were you running your commands? If
    > we ever meet up I owe you a beer!
    >
    > Curtis Grote
    > Memorial Hospital
    >
    >
    > Curtis Grote
    > Memorial Hospital
    >




+ Reply to Thread