Hi all, I have been lurking here on and off for a while and have recently returned after being off-list for a few months, I've searched the MARC list archives and can't see any useful information for my situation. Basically, I have a system that calls out to the samba command line utilities pdbedit/smbpasswd etc to modify user account information. This is okay, but very slow and tedious for the amount of users I need to modify so I want to directly access the same functionality that the command line tools do. So, I have had a look at the source of pdbedit and can see how it generally works, I do however have a few questions that I'm sure the people on this list will be much more able to answer: - Is there a set of documentation around for the API? I can't seem to find any on the samba site, the developer docs talk about the underlying protocols and provide starting points for that but I can't seem to find API docs. - Is there an existing set of Java JNI wrappers for this kind of functionality (I know, I'm reaching now...) - If I just want to access the SAM database functionality which bits of Samba will i need to link against (of course, this will be easy to find out from trial-and-error) Thanks in advance, n
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Nigel Rantor wrote: | | - Is there a set of documentation around for the API? | I can't seem to find any on the samba site, the developer | docs talk about the underlying protocols and provide | starting points for that but I can't seem to find | API docs. Nope. no api docs. But what I would suggest is talking to Chris Nichols on the samba-technical mailing list about his libmsrpc work. The better choice here in my opinion would be to use the SAMR rpc functions and talk to smbd directly. you could also be doing us and the Samba community a great service to help this mature. | - Is there an existing set of Java JNI wrappers for | this kind of functionality (I know, I'm reaching now...) Nope. But if you follow the line of thinking above, you might be able to use jCIFS. | - If I just want to access the SAM database functionality | which bits of Samba will i need to link against (of | course, this will be easy to find out from trial-and-error) Our code is not currently easy to pull parts from. but if you choose to follow the passdb API route, then look at the Makefile for linking pdbedit. cheers, jerry ====================================================================Alleviating the pain of Windows(tm) ------- http://www.samba.org GnuPG Key ----- http://www.plainjoe.org/gpg_public.asc "I never saved anything for the swim back." Ethan Hawk in Gattaca -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC6qVFIR7qMdg1EfYRAi0vAJ9qNcqWLIpVnJL4AdjIXm3c7YmYKgCcDZzG akPSLYBP+ER6EKn8VvSIE18=4vLl -----END PGP SIGNATURE-----