Commit Graph

12 Commits

Author SHA1 Message Date
Roman Maksimov 7aabdb1689 fix indent in addcomputer.py 2021-10-30 23:41:19 +03:00
Martin Gallo cd4fe47cfc Arrange tagline, copyright and license notes across all source files
This was a pending change to:
- Use the same tagline, copyright and license notice across files.
- Remove authors' contacts that are no longer valid (due to affiliation changes).
- Update repository location.
- Update license file with missing licenses (althought those were already in source files).

This doesn't include any change on the source code, nor any change on current copyright or licenses. Just formatting and phrasing to make our and distro's maintainers life easier.
2021-07-20 10:04:27 -03:00
0xdeaddood 7d084049ad Enable the machine account created via SAMR in addcomputer.py 2021-05-17 22:07:33 -03:00
Martin Gallo a45f331360 Refactored the credentials parsing functions (#1058)
Similar to and on top of #1053, this moves the credentials/account parsing regex to an utils module and reduces duplicated code in example scripts.

The expected credential format is:
`<DOMAIN></USERNAME><:PASSWORD>`

Note that the regular expression used in `exchanger.py` was different (excluded ':' from the hostname) but I didn't found any reason to keep it different from all other scripts.

This PR:
- Moved credentials parsing routine to an utils module.
- Added unit tests for the new function.
- Using the new function across example scripts that accept a credential/account.
2021-04-22 10:02:29 -03:00
Arseniy Sharoglazov abb991572d Normalizing [domain/]user[:password] regexps to the right one 2020-04-02 07:33:52 +03:00
Roman Maksimov 865e27e0da fix decoding of byte-strings 2020-03-08 02:11:41 +03:00
asolino 8d4c91481b Print Library's installation path by default when -debug is specified 2020-02-05 19:52:39 -03:00
Vyacheslav Syrovatsky 0a7ba186a0 Fix the warning added to Python 3.8: SyntaxWarning: "is" with a literal. Did you mean "=="? 2019-11-28 17:14:28 +03:00
asolino f79210ac35 Minor code changes and grammar fixes 2019-11-21 17:50:07 -03:00
asolino 0776ddbe02 Updated copyright and removing unused import 2019-11-21 17:42:59 -03:00
JaGoTu be6181e7fe Addcomputer: Workaround for python bug
https://bugs.python.org/issue11874
2019-09-24 13:10:24 +02:00
Jan Gocník 66c76985ad AddComputer: new example script
AddComputer.py can add a computer to a domain using LDAP or SAMR (SMB)
2019-08-23 15:20:03 +02:00