[SAMBA-TNG] using and createing libsmb and libmsrpc
Luke Kenneth Casson Leighton
lkcl at samba.org
Wed Jan 19 23:33:24 GMT 2000
On Wed, 19 Jan 2000, Steve Langasek wrote:
> > > And pam_smbpass weighs in at 35K, instead of its previous 168K. Plus I don't
> > > have to copy code from the Samba tree anymore, either. Hurrah. :)
> > you started using it already? i onkly just did a cvs commit a couple of
> > hours ago!
> Yep. Isn't it great how easy to use the new stuff is? :)
> > hey, you wannt do a pam_ntdompass, too?
> Hmm. What do you have in mind?
ohh, just one function call. see
rpcclient/cmd_samr.c:cmd_sam_ntchange_pwd() as an example of what to do.
this calls msrpc_sam_ntchange_pwd() which does everything you need. about
the only thing you _will_ need to do (at the moment), is call the
following two functions:
and that should really be it! in fact, you shouldn't really need to call
init_connections() because the static variables it uses should be NULL
hey, pams aren't reentrant, are they?
More information about the samba-technical