Re: [Samba] Re-replicate LDAP

2012-11-12 Thread Kristofer
I am still having this issue. Does anyone have any ideas?? 


- Original Message -

From: Kristofer kristo...@cybernetik.net 
To: samba@lists.samba.org 
Sent: Monday, October 15, 2012 10:08:05 AM 
Subject: Re: [Samba] Re-replicate LDAP 

 samba4 service needs to be running to demote. When samba is started what 
 does samba-tool drs showrepl say ? 

Samba IS running. 

I also receive this error when trying it against a specific server: 

Using BRSAD as partner server for the demotion 
ERROR(class 'samba.drs_utils.drsException'): uncaught exception - 
drsException: DRS connection to BRSAD failed: (-1073741772, 
'NT_STATUS_OBJECT_NAME_NOT_FOUND') 
File /usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py, 
line 168, in _run 
return self.run(*args, **kwargs) 
File /usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py, 
line 631, in run 
(drsuapiBind, drsuapi_handle, supportedExtensions) = drsuapi_connect(server, 
lp, creds) 
File /usr/local/samba/lib/python2.7/site-packages/samba/drs_utils.py, line 
54, in drsuapi_connect 
raise drsException(DRS connection to %s failed: %s % (server, e)) 


ALl servers are showing success from showrepl and 0 consecutive failures. 




 
-- 
To unsubscribe from this list go to the following URL and read the 
instructions: https://lists.samba.org/mailman/options/samba 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Re-replicate LDAP

2012-10-15 Thread Kristofer


On Oct 15, 2012, at 12:56 AM, Andreas Oster aos...@novanetwork.de wrote:

 I guess you can achieve the same with:
 
 samba-tool domain demote -Uadministrator
 
 afterwards you can join the DC again.

That has been unsuccessful to me also. 

I receiver errors:

Failed to bind to uuid e3514235-4b06-11d1-ab04-00c04fc2dcd2 for 
e3514235-4b06-11d1-ab04-00c04fc2dcd2@ncacn_ip_tcp:BLADS1.ad.domain.com[1024,seal]
 NT_STATUS_IO_TIMEOUT
ERROR(class 'samba.drs_utils.drsException'): uncaught exception - 
drsException: DRS connection to BLADS1.ad.domain.com failed: (-1073741643, 
'NT_STATUS_IO_TIMEOUT')
  File /usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py, 
line 168, in _run
return self.run(*args, **kwargs)
  File /usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py, 
line 631, in run
(drsuapiBind, drsuapi_handle, supportedExtensions) = 
drsuapi_connect(server, lp, creds)
  File /usr/local/samba/lib/python2.7/site-packages/samba/drs_utils.py, line 
54, in drsuapi_connect
raise drsException(DRS connection to %s failed: %s % (server, e))
root@rcads1:/usr/local/samba/bin#

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Re: [Samba] Re-replicate LDAP

2012-10-15 Thread Andreas Oster
Am 15.10.2012 08:41, schrieb Kristofer:
 
 
 On Oct 15, 2012, at 12:56 AM, Andreas Oster aos...@novanetwork.de wrote:
 
 I guess you can achieve the same with:

 samba-tool domain demote -Uadministrator

 afterwards you can join the DC again.
 
 That has been unsuccessful to me also. 
 
 I receiver errors:
 
 Failed to bind to uuid e3514235-4b06-11d1-ab04-00c04fc2dcd2 for 
 e3514235-4b06-11d1-ab04-00c04fc2dcd2@ncacn_ip_tcp:BLADS1.ad.domain.com[1024,seal]
  NT_STATUS_IO_TIMEOUT
 ERROR(class 'samba.drs_utils.drsException'): uncaught exception - 
 drsException: DRS connection to BLADS1.ad.domain.com failed: (-1073741643, 
 'NT_STATUS_IO_TIMEOUT')
   File 
 /usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py, line 
 168, in _run
 return self.run(*args, **kwargs)
   File /usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py, 
 line 631, in run
 (drsuapiBind, drsuapi_handle, supportedExtensions) = 
 drsuapi_connect(server, lp, creds)
   File /usr/local/samba/lib/python2.7/site-packages/samba/drs_utils.py, 
 line 54, in drsuapi_connect
 raise drsException(DRS connection to %s failed: %s % (server, e))
 root@rcads1:/usr/local/samba/bin#
 
 
 
Hello Kristofer,

samba4 service needs to be running to demote. When samba is started what
does samba-tool drs showrepl say ?

best regards

Andreas

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Re-replicate LDAP

2012-10-15 Thread Kristofer
 samba4 service needs to be running to demote. When samba is started what 
 does samba-tool drs showrepl say ? 

Samba IS running. 

I also receive this error when trying it against a specific server: 

Using BRSAD as partner server for the demotion 
ERROR(class 'samba.drs_utils.drsException'): uncaught exception - 
drsException: DRS connection to BRSAD failed: (-1073741772, 
'NT_STATUS_OBJECT_NAME_NOT_FOUND') 
File /usr/local/samba/lib/python2.7/site-packages/samba/netcmd/__init__.py, 
line 168, in _run 
return self.run(*args, **kwargs) 
File /usr/local/samba/lib/python2.7/site-packages/samba/netcmd/domain.py, 
line 631, in run 
(drsuapiBind, drsuapi_handle, supportedExtensions) = drsuapi_connect(server, 
lp, creds) 
File /usr/local/samba/lib/python2.7/site-packages/samba/drs_utils.py, line 
54, in drsuapi_connect 
raise drsException(DRS connection to %s failed: %s % (server, e)) 


ALl servers are showing success from showrepl and 0 consecutive failures. 




 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

[Samba] Re-replicate LDAP

2012-10-14 Thread Kristofer
I currently have 10 domain controllers (all Samba 4rc1), and I would like to 
reset one of them. 

I would like to completely clear out their LDAP database, and force it to get a 
fresh copy replicated from one of the other 9 DC's out there. 

What would be the proper way of doing this with Samba 4? I know in Windows, you 
can demote a DC, and then promote it, and it will recover any data, but am 
unsure of how to replicate that procedure with S4. 

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Re-replicate LDAP

2012-10-14 Thread Andreas Oster
Am 15.10.2012 01:50, schrieb Kristofer:
 I currently have 10 domain controllers (all Samba 4rc1), and I would like to 
 reset one of them. 
 
 I would like to completely clear out their LDAP database, and force it to get 
 a fresh copy replicated from one of the other 9 DC's out there. 
 
 What would be the proper way of doing this with Samba 4? I know in Windows, 
 you can demote a DC, and then promote it, and it will recover any data, but 
 am unsure of how to replicate that procedure with S4. 
 
Hello Kristofer,

I guess you can achieve the same with:

samba-tool domain demote -Uadministrator

afterwards you can join the DC again.

best regards

Andreas

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba