insert into authors_docs (pers_id,doc_id) values (1,2);
 insert into authors_docs (pers_id,doc_id) values (2,1);
 
-insert into referrals (id,name,url) values (1,'Referral','ldap://localhost:9010/');
+insert into referrals (id,name,url) values (1,'Referral','ldap://localhost:9012/');
 
 values (4,'referral');
 
 insert into ldap_referrals (entry_id,url)
-values (4,'ldap://localhost:9010/');
+values (4,'ldap://localhost:9012/');
 
 -- support procedures
 
 
 insert into authors_docs (pers_id,doc_id) values (1,2);
 insert into authors_docs (pers_id,doc_id) values (2,1);
 
-insert into referrals (id,name,url) values (1,'Referral','ldap://localhost:9010/');
+insert into referrals (id,name,url) values (1,'Referral','ldap://localhost:9012/');
 
 --     entry_id        the "ldap_entries.id" of the entry that should be treated as a referral
 --     url             the URI of the referral
 insert into ldap_referrals (entry_id,url)
-values (4,'ldap://localhost:9010/');
+values (4,'ldap://localhost:9012/');
 
 
 -- procedures
 
 insert into authors_docs (pers_id,doc_id) values (1,2);
 insert into authors_docs (pers_id,doc_id) values (2,1);
 
-insert into referrals (id,name,url) values (1,'Referral','ldap://localhost:9010/');
+insert into referrals (id,name,url) values (1,'Referral','ldap://localhost:9012/');
 
 values (4,'referral');
 
 insert into ldap_referrals (entry_id,url)
-values (4,'ldap://localhost:9010');
+values (4,'ldap://localhost:9012');
 
 facsimileTelephoneNumber: +1 313 555 9700
 telephoneNumber: +1 313 555 5331
 
-# refldap://:9010/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
+# refldap://localhost:9016/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
 
 # searching base="o=Example,c=US"...
 dn: cn=Added Group,ou=Groups,o=Example,c=US
 facsimileTelephoneNumber: +1 313 555 9700
 telephoneNumber: +1 313 555 5331
 
-# refldap://:9010/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
+# refldap://localhost:9016/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
 
 #      base="o=Example,c=US"...
 dn: cn=Added Group,ou=Groups,o=Example,c=US
 objectClass: referral
 objectClass: extensibleObject
 cn: Somewhere
-ref: ldap://:9010
+ref: ldap://localhost:9016
 
 dn: cn=Ursula Hampster,ou=Alumni Association,ou=People,o=Example,c=US
 objectClass: OpenLDAPperson
 dn: cn=Ursula Hampster,ou=Alumni Association,ou=People,o=Example,c=US
 seeAlso: cn=All Staff,ou=Groups,o=Example,c=US
 
-# refldap://:9010/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
+# refldap://localhost:9016/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
 
 # searching filter="(uid=example)"
 #      attrs="uid"
 #      base="o=Example,c=US"...
-# refldap://:9010/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
+# refldap://localhost:9016/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
 
 # searching filter="(member=cn=Another Added Group,ou=Groups,o=Example,c=US)"
 #      attrs="member"
 member: cn=Added Group,ou=Groups,o=Example,c=US
 member: cn=Another Added Group,ou=Groups,o=Example,c=US
 
-# refldap://:9010/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
+# refldap://localhost:9016/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
 
 
 facsimileTelephoneNumber: +1 313 555 9700
 telephoneNumber: +1 313 555 5331
 
-# refldap://:9010/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
+# refldap://localhost:9016/cn=Somewhere,ou=Meta,dc=example,dc=com??sub
 
 
 telephoneNumber: +49 1234-567-890
 description: Just added in o=Beispiel,c=DE naming context
 
-# refldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE??sub
+# refldap://localhost:9012/ou=Referrals,o=Beispiel,c=DE??sub
 
 dn: cn=Added Group,ou=Groups,o=Example,c=US
 objectClass: groupOfNames
 telephoneNumber: +49 1234-567-890
 description: Just added in o=Beispiel,c=DE naming context
 
-# refldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE??sub
+# refldap://localhost:9012/ou=Referrals,o=Beispiel,c=DE??sub
 
 dn: cn=Added Group,ou=Groups,o=Esempio,c=IT
 objectClass: groupOfUniqueNames
 ou: Referrals
 description: Just added as ldap://localhost.localdomain:389/ou=Referrals,o=Bei
  spiel,c=DE
-description: ...and modified as ldap://localhost:9010/ou=Referrals,o=Beispiel,
+description: ...and modified as ldap://localhost:9012/ou=Referrals,o=Beispiel,
  c=DE
-ref: ldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE
+ref: ldap://localhost:9012/ou=Referrals,o=Beispiel,c=DE
 
 #      base="o=Example,c=US"...
 dn: ou=Referrals,o=Example,c=US
 ou: Referrals
 description: Just added as ldap://localhost.localdomain:389/ou=Referrals,o=Bei
  spiel,c=DE
-description: ...and modified as ldap://localhost:9010/ou=Referrals,o=Beispiel,
+description: ...and modified as ldap://localhost:9012/ou=Referrals,o=Beispiel,
  c=DE
-ref: ldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE
+ref: ldap://localhost:9012/ou=Referrals,o=Beispiel,c=DE
 
 #      base="o=Esempio,c=IT"...
 dn: ou=Referrals,o=Esempio,c=IT
 ou: Referrals
 description: Just added as ldap://localhost.localdomain:389/ou=Referrals,o=Bei
  spiel,c=DE
-description: ...and modified as ldap://localhost:9010/ou=Referrals,o=Beispiel,
+description: ...and modified as ldap://localhost:9012/ou=Referrals,o=Beispiel,
  c=DE
-ref: ldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE
+ref: ldap://localhost:9012/ou=Referrals,o=Beispiel,c=DE
 
 # searching filter="(seeAlso=cn=all staff,ou=Groups,o=Example,c=US)"
 #      attrs="seeAlso"
 dn: cn=Added User,ou=Alumni Association,ou=People,o=Example,c=US
 seeAlso: cn=All Staff,ou=Groups,o=Example,c=US
 
-# refldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE??sub
+# refldap://localhost:9012/ou=Referrals,o=Beispiel,c=DE??sub
 
 # searching filter="(uid=example)"
 #      attrs="uid"
 dn: o=Example,c=US
 uid: example
 
-# refldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE??sub
+# refldap://localhost:9012/ou=Referrals,o=Beispiel,c=DE??sub
 
 # searching filter="(member=cn=Another Added Group,ou=Groups,o=Example,c=US)"
 #      attrs="member"
 #      base="o=Example,c=US"...
-# refldap://localhost:9010/ou=Referrals,o=Beispiel,c=DE??sub
+# refldap://localhost:9012/ou=Referrals,o=Beispiel,c=DE??sub
 
 dn: cn=Another Added Group,ou=Groups,o=Example,c=US
 member: cn=Added Group,ou=Groups,o=Example,c=US
 
 documentAuthor: cn=Mitya Kovalev,dc=example,dc=com
 documentIdentifier: document 2
 
-# refldap://localhost:9010/dc=example,dc=com??one
+# refldap://localhost:9012/dc=example,dc=com??one
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 documentAuthor: cn=Mitya Kovalev,dc=example,dc=com
 documentIdentifier: document 2
 
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: dc=example,dc=com
 objectClass: organization
 objectClass: referral
 objectClass: extensibleObject
 ou: Referral
-ref: ldap://localhost:9010/
+ref: ldap://localhost:9012/
 
 dn: dc=example,dc=com
 objectClass: organization
 
 # Testing invalid filter...
 # Testing exact search...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 telephoneNumber: 332-2334
 
 # Testing substrings initial search...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 telephoneNumber: 332-2334
 
 # Testing substrings any search...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 telephoneNumber: 332-2334
 
 # Testing substrings final search...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 telephoneNumber: 332-2334
 
 # Testing approx search...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 telephoneNumber: 332-2334
 
 # Testing extensible filter search...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 telephoneNumber: 332-2334
 
 # Testing search for telephoneNumber...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 telephoneNumber: 332-2334
 
 # Testing AND search...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 dc: example
 
 # Testing OR search...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 documentAuthor: cn=Mitya Kovalev,dc=example,dc=com
 documentIdentifier: document 2
 
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: dc=example,dc=com
 objectClass: organization
 documentAuthor: cn=Mitya Kovalev,dc=example,dc=com
 documentIdentifier: document 2
 
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 objectClass: inetOrgPerson
 dc: example
 
 # Testing hasSubordinates in filter...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: dc=example,dc=com
 objectClass: organization
 telephoneNumber: 332-2334
 
 # Testing attribute inheritance in requested attributes...
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: cn=Mitya Kovalev,dc=example,dc=com
 cn: Mitya Kovalev
 dn: documentTitle=book2,dc=example,dc=com
 objectClass: document
 
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: dc=example,dc=com
 objectClass: organization
 hasSubordinates: FALSE
 entryUUID: 00000002-0000-0002-0000-000000000000
 
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 dn: dc=example,dc=com
 structuralObjectClass: organization
 
 givenName: Torvlobnor
 telephoneNumber: 545-4563
 
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 # Using ldapsearch to retrieve all the entries...
 dn: cn=Akakiy Zinberstein,dc=example,dc=com
 documentAuthor: cn=Lev Tolstoij,dc=example,dc=com
 documentIdentifier: document 3
 
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 # Using ldapsearch to retrieve all the entries...
 dn: cn=Akakiy Zinberstein,dc=example,dc=com
 documentAuthor: cn=Lev Tolstoij,dc=example,dc=com
 documentIdentifier: document 3
 
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 # Using ldapsearch to retrieve all the entries...
 dn: cn=Akakiy Zinberstein,dc=example,dc=com
 documentAuthor: cn=Lev Tolstoij,dc=example,dc=com
 documentIdentifier: document 3
 
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 # Using ldapsearch to retrieve all the entries...
 dn: cn=Akakiy Zinberstein,dc=example,dc=com
 documentAuthor: cn=Lev Tolstoij,dc=subnet,dc=example,dc=com
 documentIdentifier: document 3
 
-# refldap://localhost:9010/dc=example,dc=com??sub
+# refldap://localhost:9012/dc=example,dc=com??sub
 
 # Using ldapsearch to retrieve the modified entry...
 dn: ou=Referral,dc=example,dc=com
 
 objectClass: referral
 objectClass: extensibleObject
 cn: Somewhere
-ref: ldap://:9010
+ref: ldap://localhost:9016
 
 
 dn: ou=Referrals,$BASEDN
 changetype: modify
 replace: ref
-ref: ldap://localhost:9010/ou=Referrals,$BASEDN
+ref: ldap://localhost:9012/ou=Referrals,$BASEDN
 -
 add: description
-description: ...and modified as ldap://localhost:9010/ou=Referrals,$BASEDN
+description: ...and modified as ldap://localhost:9012/ou=Referrals,$BASEDN
 -
 EOMODS