Hi Saurabh,

where did you get the following line?
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)

The attribute Security_Password is a hexadecimal value. It will work if you use 
 val=9D.1.0.25.43.1.0.4.0.0.0.14.0.0.0. ......

# show attributes mh=0x10004d | grep 11f9a
0x11f9a     Security_Password                                      
9D.1.0.25.43.1.0.4.0.0.0.14.0.0.0.x.x.x.x.x.x.x

Regards
Andreas


From: Calvin Lane [mailto:[email protected]]
Sent: Thursday, September 01, 2011 10:46 PM
To: spectrum
Cc: spectrum
Subject: 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]<mailto:[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]<mailto:[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]<mailto:[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<tel:860-766-0842>  |  e-mail: 
[email protected]<mailto:[email protected]>



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


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


The information contained in this e-mail message is privileged and
confidential and is for the exclusive use of the addressee. The person
who receives this message and who is not the addressee, one of his
employees or an agent entitled to hand it over to the addressee, is
informed that he may not use, disclose or reproduce the contents
thereof, and is kindly asked to notify the sender and delete the e-mail
immediately.


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

Reply via email to