svn commit: samba r21852 - in branches/SAMBA_4_0/webapps/swat/source/class/swat/module/netmgr: .

Rafal Szczesniak mimir at samba.org
Fri Mar 16 06:10:43 GMT 2007


On Thu, Mar 15, 2007 at 10:52:34PM -0400, derrell at samba.org wrote:
> mimir at samba.org writes:
> 
> > +	if (typeof(parentNode.credentials) == "object")
> > +	{
> > +	  var creds = parentNode.credentials;
> > +	  var request = _this.callRpc("samba.ejsnet", "NetContext", [ creds ]);
> > +	  request.setUserData("requestType", "NetContext");
> > +	}
> > +	else
> > +	{
> > +	  // TODO: display a login dialog
> > +	}
> > +      }
> > +      
> > +    });
> 
> I'm not sure what you're doing here, but login is handled automatically for
> all of the modules.  Either you don't understand the SWAT framework and its
> standard capabilities, or (more likely) I just don't understand what you're
> doing here.  If I'm off base, just tell me to shut up. :-)

Yes, I know the login is handled by SWAT.
I need to create NetContext for the host node. Since each host I connect
to by means of libnet may require different credentials, I attach them
to the node and create the actual context on the server side. So, this
is creating libnet credentials rather than logging in to SWAT.
There's one thing that might turned useful here. Default credentials could
be created on the basis of SWAT login credentials. However, specifying
different ones needs to be available. Right now, if there's nothing given
yet, I ask (vide TODO).

Don't shut up - thanks for keeping an eye on this code :-)


cheers,
-- 
Rafal Szczesniak
Samba Team member  http://www.samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba-cvs/attachments/20070316/5785ea7c/attachment.bin


More information about the samba-cvs mailing list