|
619 |
# unpack the host record |
619 |
# unpack the host record |
620 |
srv=__unpack_sRVrecord(object) |
620 |
srv=__unpack_sRVrecord(object) |
621 |
|
621 |
|
622 |
# ucr set connector/s4/mapping/dns/srv/_ldap._tcp.test.local/location='100 0 389 foobar.test.local. 100 0 389 foobar2.test.local.' |
622 |
# ucr set connector/s4/mapping/dns/srv_record/_ldap._tcp.test.local/location='100 0 389 foobar.test.local. 100 0 389 foobar2.test.local.' |
623 |
ucr_locations = s4connector.configRegistry.get('connector/s4/mapping/dns/srv_record/%s.%s/location' % (relativeDomainName[0].lower(),zoneName[0].lower())) |
623 |
ucr_locations = s4connector.configRegistry.get('connector/s4/mapping/dns/srv_record/%s.%s/location' % (relativeDomainName.lower(),zoneName.lower())) |
624 |
ud.debug(ud.LDAP, ud.INFO, 'ucs_srv_record_create: ucr_locations for connector/s4/mapping/dns/srv_record/%s.%s/location: %s' % (relativeDomainName.lower(),zoneName.lower(),ucr_locations)) |
624 |
ud.debug(ud.LDAP, ud.INFO, 'ucs_srv_record_create: ucr_locations for connector/s4/mapping/dns/srv_record/%s.%s/location: %s' % (relativeDomainName.lower(),zoneName.lower(),ucr_locations)) |
625 |
|
625 |
|
626 |
if ucr_locations and ucr_locations.lower() == 'ignore': |
626 |
if ucr_locations and ucr_locations.lower() == 'ignore': |
|
698 |
relativeDomainName=object['attributes'].get('relativeDomainName') |
698 |
relativeDomainName=object['attributes'].get('relativeDomainName') |
699 |
relativeDomainName=univention.s4connector.s4.compatible_list(relativeDomainName) |
699 |
relativeDomainName=univention.s4connector.s4.compatible_list(relativeDomainName) |
700 |
|
700 |
|
701 |
# ucr set connector/s4/mapping/dns/srv/_ldap._tcp.test.local/location='100 0 389 foobar.test.local.' |
701 |
# ucr set connector/s4/mapping/dns/srv_record/_ldap._tcp.test.local/location='100 0 389 foobar.test.local.' |
702 |
# ucr set connector/s4/mapping/dns/srv/_ldap._tcp.test.local/location='100 0 389 foobar.test.local. 100 0 389 foobar2.test.local.' |
702 |
# ucr set connector/s4/mapping/dns/srv_record/_ldap._tcp.test.local/location='100 0 389 foobar.test.local. 100 0 389 foobar2.test.local.' |
703 |
ucr_locations = s4connector.configRegistry.get('connector/s4/mapping/dns/srv_record/%s.%s/location' % (relativeDomainName[0].lower(),zoneName[0].lower())) |
703 |
ucr_locations = s4connector.configRegistry.get('connector/s4/mapping/dns/srv_record/%s.%s/location' % (relativeDomainName[0].lower(),zoneName[0].lower())) |
704 |
ud.debug(ud.LDAP, ud.INFO, 'ucs_srv_record_create: ucr_locations for connector/s4/mapping/dns/srv_record/%s.%s/location: %s' % (relativeDomainName[0].lower(),zoneName[0].lower(),ucr_locations)) |
704 |
ud.debug(ud.LDAP, ud.INFO, 's4_srv_record_create: ucr_locations for connector/s4/mapping/dns/srv_record/%s.%s/location: %s' % (relativeDomainName[0].lower(),zoneName[0].lower(),ucr_locations)) |
705 |
if ucr_locations: |
705 |
if ucr_locations: |
706 |
if ucr_locations.lower() == 'ignore': |
706 |
if ucr_locations.lower() == 'ignore': |
707 |
return |
707 |
return |