summaryrefslogtreecommitdiffstats
path: root/source4/scripting/bin/samba_spnupdate
Commit message (Collapse)AuthorAgeFilesLines
* s4: samba_spnupdate: fix "if we are DNS server" checkBjörn Baumbach2012-08-031-5/+6
| | | | | | | | | We need to check if we have hasMasterNCs. If we are RODC we have hasFullReplicaNCs instead of hasMasterNCs. TODO: maybe check for hasFullReplicaNCs, too? Signed-off-by: Stefan Metzmacher <metze@samba.org>
* samba_spnupdate: don't try to register DNS related SPN if we are not ↵Matthieu Patou2012-04-191-1/+24
| | | | | | | | mastering the NC For RW DC the impact is pretty small but for RODC the whole SPN set is rejected by the target DC as RODC hasn't the right to register DNS SPN if it is not mastering this NC.
* s4:libnet/py_net.c: "py_net_finddc" - add an "address" parameterMatthias Dieter Wallnöfer2011-11-261-1/+1
| | | | | | | | This is useful for a new "samba-tool domain info" command. Patch inspired by Matthieu Patou. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-dns/spn: fixed DNS and SPN scripts to setup forest DNS nameAndrew Tridgell2011-08-251-2/+3
|
* s4-spnupdate: fixed searches on domain NCAndrew Tridgell2011-08-251-2/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-param Remove 'secrets database' parameterAndrew Bartlett2011-06-061-1/+1
| | | | This is now just secrets.ldb in the private dir, which remains.
* s4-param Remove 'sam database' parameterAndrew Bartlett2011-06-061-2/+2
| | | | | | This now just relies on the private dir parameter, which remains. Andrew Bartlett
* s4-test: fixed a problem with very verbose NDR debugAndrew Tridgell2011-04-061-1/+1
| | | | | | | | lp.get("log level") returns a string, not an integer. It needs to be cast to an integer for comparison with a number Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Wed Apr 6 08:58:05 CEST 2011 on sn-devel-104
* python: use os.environ[] instead of os.putenv()Andrew Tridgell2011-02-221-2/+2
| | | | | | | using os.putenv() causes too much confusion, as it doesn't update os.getenv() Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-spnupdate: only enable NDR print at log level above 5Andrew Tridgell2010-11-181-1/+4
|
* s4-join: modify join behaviour according to domain levelAndrew Tridgell2010-11-071-1/+1
| | | | | Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sun Nov 7 23:32:16 UTC 2010 on sn-devel-104
* s4:scripting/bin/samba_spnupdate - also support adding all possible ↵Matthias Dieter Wallnöfer2010-10-311-2/+3
| | | | "servicePrincipalName"s
* s4-spn: don't try and send an empty SPN listAndrew Tridgell2010-09-301-0/+2
| | | | Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-spnupdate: when we are a RODC we need to use the WriteSPN DRS callAndrew Tridgell2010-09-291-10/+57
| | | | | we can't do SPN updates via sam writes and replication, as the sam is read-only
* s4-kerberos: use TZ=GMT when we are invoking krb5 code in helpersAndrew Tridgell2010-09-291-0/+6
| | | | | | | | | | | Our helper scripts can fail on Fedora with the PDT timezone (Western USA). This is the same issue we found with Heimdal earlier today, the 24 second difference between GMT and UTC, but this time in MIT Kerberos as linked into bind9. By forcing TZ=GMT in these scripts we avoid the problem Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* s4-spn: don't try to do SPN updates as a RODCAndrew Tridgell2010-09-261-0/+4
| | | | we don't have the permissions to do it
* s4/spnupdate: Fixed spnupdate to use secrets credentials when accessing SamDB.Endi S. Dewata2010-06-281-3/+30
| | | | Signed-off-by: Matthias Dieter Wallnöfer <mdw@samba.org>
* s4-dsdb: added samba_spnupdateAndrew Tridgell2010-04-271-0/+137
this script adds all our required servicePrincipalName entries at runtime. The admin can add more entries to spn_update_list as needed