Hi, I didn't know about that one. I will try it out. Right now, it looks good enough. Thanks, On 10.09.2016 07:53, Andrew Bartlett via samba wrote:> On Sat, 2016-09-10 at 04:41 +0300, Ioan Eugen Stan via samba wrote: >> Hello, >> >> I'm thinking about starting a web tool for managing an Samba Active >> Directory - manage users, machines, etc. Managing Samba AD is my >> motivation so far. The idea is to build more or less a web version of >> "samba-tool". This is just an idea and so far I am exploring the >> implications. >> >> I have a strong background in Java / JavaScript. I can code in other >> languages but I am not as proficient. >> >> >> 1. Where should I start? >> >> 2. Is there an API for doing the administrative work or do I have to >> implement each operation myself? > > While I see below you are against Python, but for others I would > mention that we have an extensive Python API, this is what samba-tool > is written against. > >> 3. Asuming I will be using Java, how can I call samba-tool actions? > > Connect to the LDAP server and use LDAP operations. > >> 4. Besides Java, what tools can I use to do CRUD on Users, Computers >> in >> Samba AD ? Examples would be very usefull. >> >> Note: I went over the wiki and there is not a lot of documentation. I >> saw something about a python API but I'm not familiar with python and >> it's not something I wish to use. > > Finally, have you checked that LDAP Account Manager (LAM) doesn't do > what you want? > > Andrew Bartlett > -- > Andrew Bartlett http://samba.org/~abartlet/ > Authentication Developer, Samba Team http://samba.org > Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba > >-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 473 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20160912/3c78369a/signature.sig>
This thread has me thinking about good ways to use python with web pages. Maybe php or just flat HTML for the main page and have python work with cgi to pass information with json's using AJAX Any thoughts on this? I started using php many years ago and always ended up using php itself the same way with an HTML page heavy with javascript that made ajax calls to update itself from other php pages using ajax. Maybe php for authentication with COOKIES? On Mon, Sep 12, 2016 at 5:57 AM, Ioan Eugen Stan via samba < samba at lists.samba.org> wrote:> Hi, > > I didn't know about that one. I will try it out. Right now, it looks > good enough. > > Thanks, > > On 10.09.2016 07:53, Andrew Bartlett via samba wrote: > > On Sat, 2016-09-10 at 04:41 +0300, Ioan Eugen Stan via samba wrote: > >> Hello, > >> > >> I'm thinking about starting a web tool for managing an Samba Active > >> Directory - manage users, machines, etc. Managing Samba AD is my > >> motivation so far. The idea is to build more or less a web version of > >> "samba-tool". This is just an idea and so far I am exploring the > >> implications. > >> > >> I have a strong background in Java / JavaScript. I can code in other > >> languages but I am not as proficient. > >> > >> > >> 1. Where should I start? > >> > >> 2. Is there an API for doing the administrative work or do I have to > >> implement each operation myself? > > > > While I see below you are against Python, but for others I would > > mention that we have an extensive Python API, this is what samba-tool > > is written against. > > > >> 3. Asuming I will be using Java, how can I call samba-tool actions? > > > > Connect to the LDAP server and use LDAP operations. > > > >> 4. Besides Java, what tools can I use to do CRUD on Users, Computers > >> in > >> Samba AD ? Examples would be very usefull. > >> > >> Note: I went over the wiki and there is not a lot of documentation. I > >> saw something about a python API but I'm not familiar with python and > >> it's not something I wish to use. > > > > Finally, have you checked that LDAP Account Manager (LAM) doesn't do > > what you want? > > > > Andrew Bartlett > > -- > > Andrew Bartlett http://samba.org/~abartlet/ > > Authentication Developer, Samba Team http://samba.org > > Samba Developer, Catalyst IT http://catalyst.net.nz/ > services/samba > > > > > > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
On 09/12/2016 01:17 PM, Jeff Sadowski via samba wrote:> This thread has me thinking about good ways to use python with web pages. > Maybe php or just flat HTML for the main page and have python work with cgi > to pass information with json's using AJAX > > Any thoughts on this?cgi is probably not what you want to do I doubt you want to make things complex by mixing php and python. If you have not written stuff in python, you may find you like it better than php. I suggest you take a look at pyramid, or flask as one of python web frameworks. Probably flask would be good choice. I have thought about writing web UI to do most of what an account operator would do with the aduc tool. So -- if anyone wants to start a project doing using one of the python web frameworks, please announce it on this list. I would love to participate. I have tried looking at the python api for samba-tool and there is too much old information on the web about how to use it so I gave up. Perhaps writing a webui using that api would be good we to get it documented. (but then its been more than a year since I last looked for documentation on how to use the python samba api, maybe its changed)> > I started using php many years ago and always ended up using php itself the > same way with an HTML page heavy with javascript that made ajax calls to > update itself from other php pages using ajax. > Maybe php for authentication with COOKIES? >-- David Bear 602-903-6476