On 01/03/2021 06:40, Roland Gruber wrote:
Hi Rowland,

sorry, there is still a misunderstanding. I was referring to an operation on Samba side as below. It is about adding the object class and attribute on an existing user. This fails while adding both in two steps is ok.


This is with version 4.9.5. Not sure if you know if that was fixed in current Samba release?


[2021/02/28 21:02:29.480794, 10, pid=1601, effective(0, 0), real(0, 0), class=ldb] ../lib/ldb-samba/ldb_wrap.c:79(ldb_wrap_debug)
  ldb: ldb_trace_request: MODIFY
  dn: cn=aaaa \2Caaaaa,DC=samba4,DC=test
  changetype: modify
  add: objectClass
  objectClass: ldapPublicKey
  -
  add: sshPublicKey
  sshPublicKey: 123
  -


No, you don't 'add' them, you just 'modify' them, this ldif works:

dn: CN=aaaaaa bbbbb,CN=Users,DC=samdom,DC=example,DC=com
changetype: modify
objectClass: ldapPublicKey
sshPublicKey: MIIEpAIBAAKCAQEAuzcrOUvKaWA7aDdbB5e2GnHTP1EVUI0l8RRNwd87rrILV9Q3
 lNeCKhQUDz1MSQvNrin16aF66qIO1Men2mdqsXyGXgeDbB+o+p4+06bADRbO8aUulpahpM1mCsZxX
 DKSw1MrYqBMKZlLkRkUWfj0O63sU2pogcslI5d4CUn/mmRTyG3xpfM06pi2I9EG+6ghdcrG3Wjt2w
 GBLZz4iMpyTbIYb6Hdu6FragucUxbn9AZylUriI7+tdwsSRMeVTH3QbgJZAu3znua6oK9Eh6ygjFP
 5HeEPRJgzTKe1O5nwBVRNquVABBADyR0xi5Odl7UtO+pQ2q4h6ySs6fIRRk1iewIDAQABAoIBAQCu
 NwZ4CPlQ2gYuUuTYyerh7O5By3hkPxUBpH0/XjaxuGkp0Afw8CLmeUy5abdleiBqZA283VH+qdPXW
 fvvF7GHfHOlaKR5p3Sd00hvuIqbI5Br+eTCqWW+cIz2lffDbiR4sxp6auS1CTvyyD3SBANyzcRPU4
 Pw1FO5LSi8rCm5Ru/Num0S+xoGm9HZcDLd2KnAaJT4luTsnvJ3tVrea8bjhUk3J0WwFcY3lI6/BtT
 puG5+1623tuqPkwdprUtehS4ObT/NusuVYhi0x7f7AX02LFpvDnVdh/6j4dIqDlnlcNTzNmvrw1hf
 Waz4n8Q1Upa0p7EnZPvl8Ep0wBrQlAVBAoGBAN+xPjSBMwJ4OmxRt2Pcodn8aI9Wq14YCd+mvcOLk
 sD6n7PKcvOqXUqXyXmOAMVDJEyhdhscdProPe7zKbP6CpzxXg/wnIq5sq9I83WaqM/4t1LbsnFMvm
 Ozl1ac6hSEOXCf28KzBDD2SPNlyFD0TDuXKG4gJ0uAWiNiwl1oWesLAoGBANZBPOhmJD2OFykuwFF
 MuxvWw5J8OL2PdDBA9uNNmbpx36xy8X2CdpD6TzS/AGiWpo6Ya/EvJnyzEAlZVmXI9OyH5yDe06IZ
 wnisA1EeQYc4I0ZpO83uUyPc3O5VEv17My7l1NjjWjdfOYGg29fYhATUhn09p0WX2SsvV94R8IxRA
 oGAJkJBWmeSmuSHUYl0bU8KG6dxFrsDGlfQMIFrSWuw0PLMp8qDeKt1w1FMs06XUSXXqoefFKn8VA
 GuvhS22EJ22DrsFJvZmlyCdDps8XtfThrC+Bf9YCV5FsJbqwOxgYrP7DRbOOS3Xcxx07df2IDAHR0
 QXC2Bqwcr44t7pNA5ONsCgYA/cUXl0wj8KSz2ht9vs3bcQXXb1GjAyM+w0ivJFttkd/+xgr+7WHxf
 ZZ86kSw/zAw5wSyFWF7fIe6ntgp9TUopF/z6oMCuCU6qiNTamkjxD1ByswqAage4YNgSwqJC6M45H
 tkt9/Ro3QucNNOkUHqXK48/WphDZTlrLjOokEtYYQKBgQDUhFw51ICMbV/gx+C3TO5/nq09b2h7oT
 vS7NRRJgkAD1d6pegt7DMU6T89Abxh+fDvJ51GcXxKVIPS98LqpAE93u7t6YMbpFkjaQh+sa8Fpg6
 /YORkkJvvbAkJwMyGwI+JU6oxWKKpz9NolBeqU3UcOs5DKwzP+CLt4+dgjsw5Hg==

Also, I would suggest upgrading from Samba 4.9.5, it is EOL as far as Samba is concerned and will only get security updates backported by your OS.

Rowland




_______________________________________________
Lam-public mailing list
Lam-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lam-public

Reply via email to