summaryrefslogtreecommitdiff
path: root/source3/python
AgeCommit message (Collapse)AuthorFilesLines
2003-03-24Started working on python routines to add and delete domain users.Tim Potter4-146/+404
Unfortunately users get created with the ACB mask set to disabled and must change password. The set_user_info2 call required to fix this doesn't quite work yet... (This used to be commit 55a341a367a7d1b18ae7ef04678479eb74b68ea3)
2003-03-19GCC 3.x has deprecated multi-line string constants.Tim Potter5-307/+304
(This used to be commit 54000fc3b0daee452f4d5bc7dad40757f1cf7c11)
2003-03-19Fix compiler warning.Tim Potter2-3/+8
(This used to be commit 74c1cd0040890d24e6191d4cb0467e9f9d70f5dc)
2003-03-19Removed unused variable.Tim Potter1-2/+0
(This used to be commit 6326b0f0b489334c672548a50740890a124988a2)
2003-03-19Add function prototype.Tim Potter1-0/+4
(This used to be commit 57e5c2007b7390c06989b34c7ecf6b5f6f56a03b)
2003-03-19Remove py_samba.c experiment - it didn't work.Tim Potter2-68/+1
(This used to be commit e69c061211e9c64201b54087d1381740d82cbbcd)
2003-03-18Added #ifdef'ed out implementation of auth_smbd python fn. UncommentTim Potter1-1/+71
when auth_smbd functionality merged to HEAD. (This used to be commit 2b6d13672dc1e4a46fc2600e729c22d0ee7e534b)
2003-03-13Added chainlock, chainunlock, lock_bystring and unlock_bystring methods.Tim Potter1-1/+81
(This used to be commit cd5c47f47379a8c4021771ec28a9da0085f80d98)
2003-02-24Quieten compiler warning.Tim Potter1-0/+7
(This used to be commit eb5d1a72dc9dc35997d39f8778ee98163b8cce32)
2003-02-20DocMartin Pool1-1/+1
(This used to be commit 5d7d400d6c49b195a1174ef40c7bf95065427fbd)
2003-02-20(Merge from APPLIANCE_HEAD)Martin Pool1-0/+3
CR1829: Fix memory leak when unpacking 'B' buffers in Python. (PyList_Append creates a new reference to the added object, and so we have to release the existing one.) (This used to be commit 55e114f596e0edfdf176cabdbcfe7f01fae6f8aa)
2003-02-18Cleanup of header files for python extensions.Tim Potter25-261/+360
- combine py_foo_proto.h and py_foo.h - move #include of Python.h into one place so we can get rid of that annoying compiler warning about HAVE_FSTAT being redefined (This used to be commit 0659351b251aee438bb9e92682bc445f164923a5)
2003-02-18Check return code from string_to_sid.Martin Pool1-2/+8
(This used to be commit fe449328b226a33ad1c64e087fe63e79f90ab4ac)
2003-02-17Added SRVSVC pipe support. I've started implementing NetServerGetInfo()Tim Potter3-0/+217
(This used to be commit 8e0d781995b56dd1cd348baadd494bb8e64c10bc)
2003-01-17reverted this patch till I sort out the craziness with UNIHDRAndrew Tridgell2-2/+2
(This used to be commit e3d00fa47d38cd214f5e350e1d6b30d90ed8a52c)
2003-01-17This removes the 3rd argument from init_unistr2(). There were 240Andrew Tridgell2-2/+2
calls to init_unistr2() in the code and every one of them got the 3rd argument incorrect, so I thought it best just to remove the argument. The incorrect usage was caused by callers using strlen() to determine the length of the string. The 3rd argument to init_unistr2() was supposed to be the character length, not the byte length of the string, so for non-english this could come out wrong. I also removed the bogus 'always allocate at least 256 bytes' hack. There may be some code that relies on this, but if there is then the code is broken and needs fixing. (This used to be commit b9eff31b1433c81fbff733e194914a40f25e3bda)
2003-01-07Rename a local variable to avoid a warning.Tim Potter1-9/+9
(This used to be commit 232116d2db9f24d64b3fa7a6e11191599590107a)
2002-12-23Finish adding strings to all talloc_init() calls.Jeremy Allison6-13/+13
Jeremy. (This used to be commit 784d15761c3271bfd602866f8f9f880dac77671c)
2002-12-12CR1333: Fix memory leak when unpacking some structures.Martin Pool1-10/+15
* (pytdbunpack_item): PyList_Append creates an additional reference to the appended object. Therefore, release the initial reference after it's added to the list. (This used to be commit 1e63dc101a5085a46b9632ba657e5d5cd7505751)
2002-12-12* Ignore .pyc and .pyo files produced as a side-effect of runningMartin Pool1-0/+2
Python examples. (This used to be commit 3bb4bd3ed642a61e54c44c40c31f0e2242977614)
2002-12-11Some more tweaking for compilation of py_tdbpack.Tim Potter2-2/+2
(This used to be commit 89be695b2997e97dfc40afd17bb61b59b85634e4)
2002-12-04FUNCTION_MACRO change broke the Python modules.Tim Potter2-8/+18
Also fix up string pasting (I thought this should only be a warning?) (This used to be commit 739285ff694e9ffd317ad47aec373e2007c20f45)
2002-12-03use FILE_MACRO instead of __FILE__Herb Lewis1-6/+6
use FUNCTION_MACRO instead of __FUNCTION_ (This used to be commit 243763d6eb107ab2444d81025232c8fe795baaf1)
2002-11-29Fixed silly bug.Tim Potter1-1/+1
(This used to be commit 191c1596f5e939e733c9262c3beaf956328c7be6)
2002-11-27Fix comment - 850 -> iso8859-1Jeremy Allison1-1/+1
Jeremy. (This used to be commit 6639693746ba4c8f6622325ac143f8b1b3bd7538)
2002-11-27Remove use of 'F' - make 'f' and 'p' do unix (iso8859-1) encoding.Jeremy Allison1-10/+0
Jeremy. (This used to be commit e88bbec2a06bd92b8cfa33efdf166c4fa72cb656)
2002-11-25Fix some argument checking bugs found by testsuite.Tim Potter1-16/+22
(This used to be commit 93306f581e3fa37d1aea67e93dc83d5a6d2fcb3f)
2002-11-22Added some extra code to test absence/presence of LM and NT passwords.Tim Potter1-8/+17
(This used to be commit 6f1d48555f53ea3b32a7b8a6cf0fc2e148c311b7)
2002-11-22Fixed some compiler warnings.Tim Potter2-5/+6
(This used to be commit 9e871cc256a70bc64e59630bd31c890cc231368e)
2002-11-22Fixed some globals that escaped the recent globalcide.Tim Potter2-10/+2
(This used to be commit 4580e16908fe06a2c2b6738683b7cb840467e61c)
2002-11-22Add support for new 'F' format, which is a string in the defaultMartin Pool1-34/+64
codepage. (This used to be commit ff1244c457d0525343bcc7e89a899d8c7d14b8b6)
2002-11-19Fix typo in docstring.Tim Potter1-1/+1
(This used to be commit 9f9347bc03448f8b93d536f9cd2df8fb496a4c22)
2002-11-12Rename unpack_* functions to be consistentMartin Pool1-15/+16
Decode CP850 strings when unpacking Add variable giving default encoding name (This used to be commit 8cbaea2afa6faca80eced70d625359165afaa10c)
2002-11-12Rename pytdbpack_unpack -> pytdbunpackMartin Pool1-7/+7
(This used to be commit e62baf3a76e0e4f642e542812868db614632de00)
2002-11-12Just reorder functions to put related ones togetherMartin Pool1-40/+38
(This used to be commit 7863c948b73785e49d04227e87d8b4b47fd61f58)
2002-11-12Remove dead code for packing buffers which has now been reimplemented.Martin Pool1-94/+0
(This used to be commit 001779dffd18e1f6a83496c94ead185d4bb42204)
2002-11-12Remove dead code for packing buffers which has now been reimplemented.Martin Pool1-36/+0
(This used to be commit 62ca27d140d55cbb271b97624023540ae7c18882)
2002-11-12Remove non-integer Pointer values, which are no longer supported.Martin Pool1-2/+0
(This used to be commit 4a18526257ec4582679efa7a21d0b31ad07992fb)
2002-11-09Rewrite all the packing stuff so that it converts 'f' strings to CP850Martin Pool1-174/+274
on encoding. (Tough luck if your Samba codepage is not 850.) It's much cleaner and possibly more efficient now too: just build one big list of strings, then zip it up at the end. Still need to do this for unpacking. (This used to be commit 2480d385db0527b71cc5cd23c4fab4655df84485)
2002-11-06Added enumprinterkey function.Tim Potter3-0/+72
Stub for deleteprinterkey. (This used to be commit 64e04380f7ad9b471a681638dfde93e0c65f9fa3)
2002-11-06Moved function to parse a list of unicode strings into util file.Tim Potter2-26/+26
It's now used in parsing printer driver structures and the response from the enumprinterkey rpc. (This used to be commit acecee6f2bb92c4992078f4fe2dfae4414f43482)
2002-11-06pytdbpack_unpack: Clean up, and correct the handling of '$'.Martin Pool1-20/+18
(This used to be commit dd73568f97ad51c93f096001058fd31fa14e88ae)
2002-11-06Add another test case for repeated-unpack ('$')Martin Pool1-0/+9
(This used to be commit 2a492c4854d4c6469d8c7d21aa187fef6303b641)
2002-11-05pytdbpack_pack_data: Allow first argument to be any kind of Number,Martin Pool1-3/+9
not just an Integer. Coerce appropriately. (This used to be commit 248067931a2a8eeee86ea343bddf96d2bd727dbf)
2002-11-05pytdbpack_pack_data: If the first argument to a 'B' code is not anMartin Pool1-1/+3
Integer, raise an error rather than just returning Null, which breaks the interpreter. (This used to be commit db67c5f7e53b231fe217a29a15888e8895ce2229)
2002-11-05pytdbpack_pack_data: Oops, since B is separately encoded as buffer andMartin Pool1-5/+8
length we need separate counters traversing the format and value sequences to pack them. (This used to be commit 49a0ba46e6693bb819440d4ab40045afc4a7ae17)
2002-11-05Update test cases.Martin Pool1-28/+32
(This used to be commit db2c393dd488dad2ce95f3b3cf0297d5b0159ae7)
2002-11-05pytdbpack_unpack: Handle unpacking Buffers into (LEN, DATA): form listMartin Pool1-21/+45
by appending, rather than preallocating. (This used to be commit d72b144e03b9a9cb3d676527ddc5b2d0e1ef42f8)
2002-11-04Add more test cases that now work.Martin Pool1-1/+2
(This used to be commit 7827536c15ac27ebcc4e9c342be6e203248195f6)
2002-11-04pytdbpack_pack_data: Allow 'd' and 'w' formats to take either IntegerMartin Pool1-2/+20
or Long arguments. (This used to be commit 2085595565b99295d04a6663aad1ccac5bc1b657)