Thanks for the script !!! it work correctly.


  <http://www.netsol-international.com/> 

Pereyra Diego
System Engineer


         

Esmeralda 684, Piso 10(C1007ABF)
Ciudad de Buenos Aires
Argentina

Web:
E-mail:
Voice:

http://www.netsol-international.com <http://netsol-international.com/> 
[email protected] <mailto:[email protected]> 
+54 11 5031 1162

 

 

 

  


On 09/02/2011 04:19 PM, Bohra, Saurabh wrote: 

        Attached is the script which I put together and a sample input file. I 
tested it on RHEL5 standalone SS system. 

         

        Saurabh Bohra

        X60842

         

        From: Calvin Lane [mailto:[email protected]] 
        Sent: Friday, September 02, 2011 11:34 AM
        To: Bohra, Saurabh
        Subject: Re: [spectrum] User creation from CLI

         

        Saurabh,

         

        That is interesting.  Can you share your shell script?  

         

        Calvin

        On Fri, Sep 2, 2011 at 11:21 AM, Bohra, Saurabh 
<[email protected]> wrote:

        Calvin,

         

        I got an email from group and someone informed me that the password is 
actually HEX. From CLI if you grep Security_Password it will be 9D.x.x.x.x.... 
from UI its 157.x.x.x strange. However it works in shell script I created...

         

        Saurabh Bohra

        X60842

         

        From: Calvin Lane [mailto:[email protected]] 

        Sent: Thursday, September 01, 2011 4:46 PM
        To: Bohra, Saurabh
        Cc: spectrum
        Subject: Re: [spectrum] User creation from CLI

         

        Hello Saurabh,

         

        According to the CLI, the appropriate value for 0x12adf 
allowNonLDAPUserLogin would be either TRUE or FALSE.   I checked in the CLI on 
two different users.  One had the value set to Yes in OneClick and the other 
set to No. Those corresponded to TRUE and FALSE on the CLI.  These values are 
most likely case sensitive, so make sure the values are in the right case.  

         

        >show attributes attr=0x12adf mh=0x400136

        Id              Name                              Iid        Value

        0x12adf     allowNonLDAPUserLogin               TRUE

         

        >mth=0x10004 | grep LDAP

        0x12adf  allowNonLDAPUserLogin Boolean R,W,O,D

         

        I can't help you with the password part.  I'm sure there are some 
caveats with password creation. I wrote a similar user creation perl script a 
couple years ago.  It simply read in user information from a flat file and then 
created the user model with no password. I can share it with you if you like.

         

        Calvin Lane

         

        
        
         

        On Thu, Sep 1, 2011 at 3:18 PM, Bohra, Saurabh <[email protected]> 
wrote:

        Hi all,

         

        I am writing a script to create users from CLI with following 
attributes. I am having trouble with two things

        a.       Password not getting assigned to user.

        b.      Unable to set allowNonLDAPUserLogin filed. I have tried 1,Yes 
and True, however spectrum does not seem to like any of these values.

         

        Any ideas from any one?

         

         

        Static Entries

        0x11f9a                Security_Password                         
spectrum 
(157.1.0.37.67.1.0.4.0.0.0.20.0.0.0.205.85.108.2.29.100.190.27.56.56.177.194.223.161.37.23.32.28.57.245)

        0x12a7e               MaxOneClickLogins                        1

        0x12adf                allowNonLDAPUserLogin              ???

         

        User Specific entries

        0x1006e               Model_Name                    j_doe

        0x10074                User_Full_Name              John Doe

        0x10075                User_Phone                      123-456-7890

        0x101f3                User_ID                               j_doe

        0x12912                User_Email                         
[email protected]

         

         

        ./create model mth=0x10004 attr=0x1006e,val=j_doe 
attr=0x10074,val="John Doe" attr=0x10075,val="123-456-7890" 
attr=0x101f3,val=j_doe attr=0x12912,val="[email protected]" 
attr=0x11f9a,val="157.1.0.37.67.1.0.4.0.0.0.20.0.0.0.205.85.108.2.29.100.190.27.56.56.177.194.223.161.37.23.32.28.57.245"
 attr=0x12a7e,val=1 attr=0x12adf,val=1

         

         

         

         

        Saurabh Bohra

        Sr. Network Mgmt Systems Analyst

        ESPN Inc.

        O: 860-766-0842  |  e-mail: [email protected]

         

         

        *       --To unsubscribe from spectrum, send email to [email protected] 
with the body: unsubscribe spectrum [email protected] 

         

________________________________

        Please consider the environment before printing this e-mail.

         

        *       --To unsubscribe from spectrum, send email to [email protected] 
with the body: unsubscribe spectrum [email protected] 


---
To unsubscribe from spectrum, send email to [email protected] with the body: 
unsubscribe spectrum [email protected]

<<ATT812071.jpg>>

<<ATT812073.jpg>>

Reply via email to