Hi Soisik,

thank you for your effort.

There is an entry uid in NIS and LDAP:

ldapsearch -x uid=mar uid uidNumber gecos
# extended LDIF
#
# LDAPv3
# base <dc=ppi,dc=org> (default) with scope subtree
# filter: uid=mar
# requesting: uid uidNumber
#

# Martin R\C3\B6h, people, ppi.org
dn:: Y249TWFydGluIFLDtmgsb3U9cGVvcGxlLGRjPXBwaSxkYz1vcmc=
uid: mar
uidNumber: 7241
gecos: Martin

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

getent passwd mar    (-> on NIS Master)
mar:sijMc1cgNHgCo:7241:202:Martin Roeh:/home/mar:/bin/bash

As far as I can see I have no filter in my lsc.xml and the attribute 
"gecos" I try to sync is different (I think).

In fact some debug logging (eg. showing the status of the nis connection, 
show the uid attribute from nis, etc) would be very helpful, but the 
debugging functions from lsc do not show such information and I don't have 
the java experience to implement it on my own in the xml file.

So I'm at a loss ....

Regards

Martin



Von:    "Soisik Froger" <[email protected]>
An:     [email protected]
Datum:  05.11.2018 15:13
Betreff:        Re: [lsc-users] Antwort: Re: Antwort: Re: Antwort: Re: 
Antwort: Re: Antwort: Re: NIS plugin and filtering
Gesendet von:   "lsc-users" <[email protected]>



On 05/11/2018 10:01, Martin Röh wrote:
> Nov 05 09:27:31 - INFO  - All entries: 949, to modify entries: 0, 
successfully modified entries: 0, errors: 0
> 
> Will a dry run perhaps always show only this message ?

Hi Martin,

I've checked the code and I can confirm that counter "modify entries" is 
incremented in dry run mode even a change would be applied without drymode 
- eg. AbstractSynchronize.run(IBean entry), lines 762 to 769.

The only reasons I can think of for that change not being detected is that 

1. there is no entry with uid "mar" in your source or in your destination 
directory, or the filter exclude such entry from being synchronize or,
2. the value of the attribute in your source is already the same as the 
value of the attribute in the destination.

Adding some debug logging as clement suggested in your condition script 
may help to understand what's going on.

Regards.
-- 
Soisik Froger

Worteks | https://www.worteks.com
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

Reply via email to