Re: [Samba] Programatically Modifying Users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nigel Rantor wrote: Okay, and here comes some stuff that might provoke some reaction so I'll climb into my flame-suit. IANAL but AFAIK ETC ETC I really doubt we have any lawyers here :-) The GPL only prohibits the distribution of modified works, it says nothing about those works that are not distributed. In this case there is no intention whatsoever of redistributing source of any kind, modified or otherwise. I am working on a system that is used internally by a business. Ahh...ok. Didn't understand that before. The only word of caution then is that sometimes in large corporations, distribution between business units can be considered redistribution. Particularly in the case where new units are aquired and old ones sold off. I would just make sure that if this applies to you, your managers understand all the possible outcomes. But it sounds like you are trying to be aware of the potential licensing issues. If you have any questions, feel free to bounce them here over here. 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.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC9jRPIR7qMdg1EfYRArNFAJ9IBeu1TRpkoJ697uH2JVht4YvJYQCeOpkt tOh24alqr51P9r46t1Hn9G8= =XNR4 -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Programatically Modifying Users
Jeremy Allison wrote: On Wed, Aug 03, 2005 at 11:07:47AM +0100, Nigel Rantor wrote: Aye, already have been looking at it. One of my other issues at the moment is the GPL issues. Since the samba project has not been designed to have bits of it used by other code I need to ensure that whatever I do won't violate the GPL. The project I'm working on is not OSS at all, let alone GPL. Then you can't link to Samba code. It's that simple. The Samba code is not allowed to be used in proprietary software, you'll have to write your own code. Hi Jeremy, I'm going to address some GPL issues in my reply to Jerry, I'm not ignoring them. :-) n -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Programatically Modifying Users
Gerald (Jerry) Carter wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nigel Rantor wrote: So, I can't find anything on SAMR rpc on the samba site, is this a very new bit of the project? Any good resources where I can find out more about it or is just talking to the samba-tech list first the way to go? Start by looking at the Samba code. The samr pipe is used for managing user and group accounts. For example, connect to a Samba server with usrmgr.exe and watch the traffic using ethereal. Roger Red Leader, I'll go grab the latest code then, I'm currently using 3.0.7 I have seen jCIFS, although in it's current state it only (AFAICT) supports the access of remote SMB shares. I haven't yet contacted the devs to see what else is in the works though or what it would take to add. I just verified this week that Mike is working on rpc support (hey Mike! :-)) but has some more work to do on it before the feature is available in a release. Groovy. My main problem is that I'm under time pressure (isn't everyone?) to make this bit of the project go faster, as you can imagine calling out to the samba CLI tools from Java is *painfully* slow. Aye, already have been looking at it. One of my other issues at the moment is the GPL issues. Since the samba project has not been designed to have bits of it used by other code I need to ensure that whatever I do won't violate the GPL. The project I'm working on is not OSS at all, let alone GPL. Sorry. Can't use any Samba code in that case. Are we talking about a Unix/Linux application here ? or a Windows management tool for Samba? You would write your client on Win32 pretty easy since the API calls are already there. If you are working on Unix, your only hope is to write your own dce/rpc library or maybe find one that is useable under a license sompatiable with your work. It is a Java app on Linux. Okay, and here comes some stuff that might provoke some reaction so I'll climb into my flame-suit. IANAL but AFAIK ETC ETC The GPL only prohibits the distribution of modified works, it says nothing about those works that are not distributed. In this case there is no intention whatsoever of redistributing source of any kind, modified or otherwise. I am working on a system that is used internally by a business. Having said that, I am an OSS advocate and my ideal route to providing this functionality would be either (as you have suggested) to contribute to getting the SAMR stuff up to scratch/using jCIFS (which is licensed under the LGPL) or producing some form of library that I would license under GPL to provide Java hooks to the functionality that I require. This package would then not be required for the operation of the system I'm working on, it *already* works by calling out to CLI programs, and could be used under the terms of the GPL at arms length. I'll repeat, reiterate and recombobulate that I am not a lawyer, but I'll be making sure that anything I do or am involved in is above board WRT the GPL. I hope this doesn't mean I'll suddenly become persona non grata here, I only just arrived :-) Note that the Samba4 IDL files (not the actual code or pidl itseld) are available for use under more liberal license. You could write your own IDL compiler and use those. Euugh, I've already written one IDL compiler for CORBA...that was hairy enough. Ta, n -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Programatically Modifying Users
Gerald (Jerry) Carter wrote: -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. Righto, joined that list today... So, I can't find anything on SAMR rpc on the samba site, is this a very new bit of the project? Any good resources where I can find out more about it or is just talking to the samba-tech list first the way to go? | - 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. I have seen jCIFS, although in it's current state it only (AFAICT) supports the access of remote SMB shares. I haven't yet contacted the devs to see what else is in the works though or what it would take to add. | - 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. Aye, already have been looking at it. One of my other issues at the moment is the GPL issues. Since the samba project has not been designed to have bits of it used by other code I need to ensure that whatever I do won't violate the GPL. The project I'm working on is not OSS at all, let alone GPL. n -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Programatically Modifying Users
On Wed, Aug 03, 2005 at 11:07:47AM +0100, Nigel Rantor wrote: Aye, already have been looking at it. One of my other issues at the moment is the GPL issues. Since the samba project has not been designed to have bits of it used by other code I need to ensure that whatever I do won't violate the GPL. The project I'm working on is not OSS at all, let alone GPL. Then you can't link to Samba code. It's that simple. The Samba code is not allowed to be used in proprietary software, you'll have to write your own code. Jeremy. -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Programatically Modifying Users
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Nigel Rantor wrote: So, I can't find anything on SAMR rpc on the samba site, is this a very new bit of the project? Any good resources where I can find out more about it or is just talking to the samba-tech list first the way to go? Start by looking at the Samba code. The samr pipe is used for managing user and group accounts. For example, connect to a Samba server with usrmgr.exe and watch the traffic using ethereal. I have seen jCIFS, although in it's current state it only (AFAICT) supports the access of remote SMB shares. I haven't yet contacted the devs to see what else is in the works though or what it would take to add. I just verified this week that Mike is working on rpc support (hey Mike! :-)) but has some more work to do on it before the feature is available in a release. Aye, already have been looking at it. One of my other issues at the moment is the GPL issues. Since the samba project has not been designed to have bits of it used by other code I need to ensure that whatever I do won't violate the GPL. The project I'm working on is not OSS at all, let alone GPL. Sorry. Can't use any Samba code in that case. Are we talking about a Unix/Linux application here ? or a Windows management tool for Samba? You would write your client on Win32 pretty easy since the API calls are already there. If you are working on Unix, your only hope is to write your own dce/rpc library or maybe find one that is useable under a license sompatiable with your work. Note that the Samba4 IDL files (not the actual code or pidl itseld) are available for use under more liberal license. You could write your own IDL compiler and use those. 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.4.0 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC8WL+IR7qMdg1EfYRAiZWAKCNjRQB23Zn7lgEKH6rC+UiraOulgCgzJ4c atOZx0IY1nTUbcwPVdBX38w= =1rlt -END PGP SIGNATURE- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
Re: [Samba] Programatically Modifying Users
-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- -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba
[Samba] Programatically Modifying Users
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 -- To unsubscribe from this list go to the following URL and read the instructions: https://lists.samba.org/mailman/listinfo/samba