@@ -45,6 +45,7 @@ func TestAddLdapBindDn(t *testing.T) {
4545 "--surname-attribute" , "sn-bind full" ,
4646 "--email-attribute" , "mail-bind full" ,
4747 "--public-ssh-key-attribute" , "publickey-bind full" ,
48+ "--jpeg-avatar-attribute" , "avatar-bind full" ,
4849 "--bind-dn" , "cn=readonly,dc=full-domain-bind,dc=org" ,
4950 "--bind-password" , "secret-bind-full" ,
5051 "--attributes-in-bind" ,
@@ -71,6 +72,7 @@ func TestAddLdapBindDn(t *testing.T) {
7172 AttributeMail : "mail-bind full" ,
7273 AttributesInBind : true ,
7374 AttributeSSHPublicKey : "publickey-bind full" ,
75+ AttributeAvatarJPEG : "avatar-bind full" ,
7476 SearchPageSize : 99 ,
7577 Filter : "(memberOf=cn=user-group,ou=example,dc=full-domain-bind,dc=org)" ,
7678 AdminFilter : "(memberOf=cn=admin-group,ou=example,dc=full-domain-bind,dc=org)" ,
@@ -269,6 +271,7 @@ func TestAddLdapSimpleAuth(t *testing.T) {
269271 "--surname-attribute" , "sn-simple full" ,
270272 "--email-attribute" , "mail-simple full" ,
271273 "--public-ssh-key-attribute" , "publickey-simple full" ,
274+ "--jpeg-avatar-attribute" , "avatar-simple full" ,
272275 "--user-dn" , "cn=%s,ou=Users,dc=full-domain-simple,dc=org" ,
273276 },
274277 loginSource : & models.LoginSource {
@@ -288,6 +291,7 @@ func TestAddLdapSimpleAuth(t *testing.T) {
288291 AttributeSurname : "sn-simple full" ,
289292 AttributeMail : "mail-simple full" ,
290293 AttributeSSHPublicKey : "publickey-simple full" ,
294+ AttributeAvatarJPEG : "avatar-simple full" ,
291295 Filter : "(&(objectClass=posixAccount)(full-simple-cn=%s))" ,
292296 AdminFilter : "(memberOf=cn=admin-group,ou=example,dc=full-domain-simple,dc=org)" ,
293297 RestrictedFilter : "(memberOf=cn=restricted-group,ou=example,dc=full-domain-simple,dc=org)" ,
@@ -501,6 +505,7 @@ func TestUpdateLdapBindDn(t *testing.T) {
501505 "--surname-attribute" , "sn-bind full" ,
502506 "--email-attribute" , "mail-bind full" ,
503507 "--public-ssh-key-attribute" , "publickey-bind full" ,
508+ "--jpeg-avatar-attribute" , "avatar-bind full" ,
504509 "--bind-dn" , "cn=readonly,dc=full-domain-bind,dc=org" ,
505510 "--bind-password" , "secret-bind-full" ,
506511 "--synchronize-users" ,
@@ -534,6 +539,7 @@ func TestUpdateLdapBindDn(t *testing.T) {
534539 AttributeMail : "mail-bind full" ,
535540 AttributesInBind : false ,
536541 AttributeSSHPublicKey : "publickey-bind full" ,
542+ AttributeAvatarJPEG : "avatar-bind full" ,
537543 SearchPageSize : 99 ,
538544 Filter : "(memberOf=cn=user-group,ou=example,dc=full-domain-bind,dc=org)" ,
539545 AdminFilter : "(memberOf=cn=admin-group,ou=example,dc=full-domain-bind,dc=org)" ,
@@ -932,6 +938,7 @@ func TestUpdateLdapSimpleAuth(t *testing.T) {
932938 "--surname-attribute" , "sn-simple full" ,
933939 "--email-attribute" , "mail-simple full" ,
934940 "--public-ssh-key-attribute" , "publickey-simple full" ,
941+ "--jpeg-avatar-attribute" , "avatar-simple full" ,
935942 "--user-dn" , "cn=%s,ou=Users,dc=full-domain-simple,dc=org" ,
936943 },
937944 id : 7 ,
@@ -952,6 +959,7 @@ func TestUpdateLdapSimpleAuth(t *testing.T) {
952959 AttributeSurname : "sn-simple full" ,
953960 AttributeMail : "mail-simple full" ,
954961 AttributeSSHPublicKey : "publickey-simple full" ,
962+ AttributeAvatarJPEG : "avatar-simple full" ,
955963 Filter : "(&(objectClass=posixAccount)(full-simple-cn=%s))" ,
956964 AdminFilter : "(memberOf=cn=admin-group,ou=example,dc=full-domain-simple,dc=org)" ,
957965 RestrictedFilter : "(memberOf=cn=restricted-group,ou=example,dc=full-domain-simple,dc=org)" ,
0 commit comments