Dave,
        Thanks for your answer. The thing is that the RFC 3414 says

usmUserCloneFrom OBJECT-TYPE
...
                    "The first time an instance of this object is set by
                 a management operation (either at or after its
                 instantiation), the cloning process is invoked.
                 Subsequent writes are successful but invoke no
                 action to be taken by the receiver." 

        And according to the Net-SNMP code, if you issue a set to the
cloneFrom OID of an user that has been read from the config/persistent
file. The agent is returning 'inconsistentName' instead of no error as
the RFC.
        The problem is because these users that were read from the
config file, have the cloneFrom OID value equal to NULL. So, in the
write_usmUserCloneFrom() function at line 762, the following code

        /*
         * Has the user already been cloned?  If so, writes to this
variable
         * are defined to have no effect and to produce no error.  
         */
        if (uptr->cloneFrom != NULL) {
            return SNMP_ERR_NOERROR;
        }

Is not executed. I think this can be fixed if we decide an OID value for
the cloneFrom OID (0.0?) of the users that are going to be created
directly in the configuration file instead using SNMP.

Any thoughts?

Regards,
Pablo.


> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Dave Shield
> Sent: Tuesday, January 02, 2007 7:02 PM
> To: Passera Pablo-APP015
> Cc: [email protected]
> Subject: Re: Initial user
> 
> On 02/01/07, Passera Pablo-APP015 <[EMAIL PROTECTED]> wrote:
> >         Does anyone knows which should be the cloneFrom OID 
> value of 
> > an initial user? I mean, you always need to have at least one user 
> > that you will use to clone other new users.
> 
> That's the point.
> You need to have at least one existing SNMPv3 user, before you can
> clone additional users.   You can't start from a completely 
> blank canvas.
> 
> 
> > I'm asking the cloneFrom OID value of that user.
> 
> Try running
> 
>     snmpusm -D dump ....  create  newUser  cloneUser
> 
> That will display the OIDs sent as part of cloning the user.
> 
> Dave
> 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to