@@ -6,15 +6,15 @@ use testcontainers::{
66 CopyDataSource , CopyToContainer , Image ,
77} ;
88
9- const NAME : & str = "bitnami /openldap" ;
10- const TAG : & str = "2.6.8 " ;
9+ const NAME : & str = "bitnamilegacy /openldap" ;
10+ const TAG : & str = "2.6.10 " ;
1111const OPENLDAP_PORT : ContainerPort = ContainerPort :: Tcp ( 1389 ) ;
1212const OPENLDAPS_PORT : ContainerPort = ContainerPort :: Tcp ( 1636 ) ;
1313
1414/// Module to work with [`OpenLDAP`] inside of tests.
1515///
1616/// Starts an instance of OpenLDAP.
17- /// This module is based on the [`bitnami /openldap docker image`].
17+ /// This module is based on the [`bitnamilegacy /openldap docker image`].
1818/// See the [`OpenLDAP configuration guide`] for further configuration options.
1919///
2020/// # Example
@@ -41,7 +41,7 @@ const OPENLDAPS_PORT: ContainerPort = ContainerPort::Tcp(1636);
4141/// ```
4242///
4343/// [`OpenLDAP`]: https://www.openldap.org/
44- /// [`bitnami /openldap docker image`]: https://hub.docker.com/r/bitnami /openldap
44+ /// [`bitnamilegacy /openldap docker image`]: https://hub.docker.com/r/bitnamilegacy /openldap
4545/// [`OpenLDAP configuration guide`]: https://www.openldap.org/doc/admin26/guide.html
4646#[ derive( Debug , Clone ) ]
4747pub struct OpenLDAP {
@@ -547,7 +547,7 @@ mod tests {
547547 . await ?
548548 . success ( ) ?;
549549 let users = read_users ( & mut ldap, "(cn=*)" , & [ "cn" ] ) . await ?;
550- assert_eq ! ( users. len( ) , 2 ) ; // cn=maximiliane and cn=readers
550+ assert_eq ! ( users. len( ) , 1 ) ; // cn=maximiliane
551551 ldap. unbind ( ) . await ?;
552552 Ok ( ( ) )
553553 }
@@ -574,7 +574,7 @@ mod tests {
574574 assert_eq ! ( access. len( ) , 0 , "no search until now" ) ;
575575
576576 let users = read_users ( & mut ldap, "(cn=*)" , & [ "cn" ] ) . await ?;
577- assert_eq ! ( users. len( ) , 3 , "cn=readers should be read" ) ;
577+ assert_eq ! ( users. len( ) , 2 , "cn=readers should be read" ) ;
578578
579579 let access = read_access_log ( & mut ldap, "(reqType=search)" , & [ "*" ] ) . await ?;
580580 assert_eq ! ( access. len( ) , 1 , "access log contains 1xread_users" ) ;
@@ -741,7 +741,7 @@ H32P9zbIKaSiPxFg5JVRW5hpQWUI1dYr3CpKP4i98w==
741741 . await ?
742742 . success ( ) ?;
743743 let users = read_users ( & mut ldap, "(cn=*)" , & [ "cn" ] ) . await ?;
744- assert_eq ! ( users. len( ) , 2 ) ; // cn=maximiliane and cn=readers
744+ assert_eq ! ( users. len( ) , 1 ) ; // cn=maximiliane
745745 ldap. unbind ( ) . await ?;
746746 Ok ( ( ) )
747747 }
0 commit comments