[yast-commit] r59909 - /branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc
Author: rhafer Date: Wed Dec 2 16:57:48 2009 New Revision: 59909 URL: http://svn.opensuse.org/viewcvs/yast?rev=59909&view=rev Log: Don't write out portnumbers when using defaults Modified: branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc Modified: branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc?rev=59909&r1=59908&r2=59909&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc (original) +++ branches/SuSE-Code-11-SP1-Branch/ldap-server/src/agent/SlapdConfigAgent.cc Wed Dec 2 16:57:48 2009 @@ -1697,7 +1697,10 @@ LDAPUrl prvuri; prvuri.setScheme(protocol); prvuri.setHost(target); - prvuri.setPort(port); + if ( ( protocol == "ldap" && port != 389 ) || ( protocol == "ldaps" && port != 636 ) ) + { + prvuri.setPort(port); + } sr->setType( type ); sr->setProvider( prvuri ); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
rhafer@svn.opensuse.org