On 27/02/2021 20:20, Rowland Penny wrote:
On 27/02/2021 20:12, Roland Gruber wrote:
Hi Rowland,
Am 27.02.21 um 21:06 schrieb Rowland Penny:
When extending the Samba4 schema, you must add the attributes in one
ldif followed by the objectclasses in another, this isn't a bug, it
is just the way it is.
this is not the problem. Schema update is all fine.
The adding of object class + attribute on the user account fails.
For some reason, Samba 4 has issues with adding an attribute together
with the object class.
Err, no it hasn't:
dn: CN=Albert Tatlock,CN=Users,DC=samdom,DC=example,DC=com
cn: Albert Tatlock
........................................
sshPublicKey: -----BEGIN RSA PRIVATE KEY-----
sshPublicKey: -----END RSA PRIVATE KEY-----
sshPublicKey:
1NjjWjdfOYGg29fYhATUhn09p0WX2SsvV94R8IxRAoGAJkJBWmeSmuSHUYl0bU8K
sshPublicKey:
2DrsFJvZmlyCdDps8XtfThrC+Bf9YCV5FsJbqwOxgYrP7DRbOOS3Xcxx07df2IDA
sshPublicKey:
6T89Abxh+fDvJ51GcXxKVIPS98LqpAE93u7t6YMbpFkjaQh+sa8Fpg6/YORkkJvv
sshPublicKey:
a/EvJnyzEAlZVmXI9OyH5yDe06IZwnisA1EeQYc4I0ZpO83uUyPc3O5VEv17My7l
sshPublicKey: bAkJwMyGwI+JU6oxWKKpz9NolBeqU3UcOs5DKwzP+CLt4+dgjsw5Hg==
sshPublicKey:
Fttkd/+xgr+7WHxfZZ86kSw/zAw5wSyFWF7fIe6ntgp9TUopF/z6oMCuCU6qiNTa
sshPublicKey:
G6dxFrsDGlfQMIFrSWuw0PLMp8qDeKt1w1FMs06XUSXXqoefFKn8VAGuvhS22EJ2
sshPublicKey:
HR0QXC2Bqwcr44t7pNA5ONsCgYA/cUXl0wj8KSz2ht9vs3bcQXXb1GjAyM+w0ivJ
sshPublicKey:
I7+tdwsSRMeVTH3QbgJZAu3znua6oK9Eh6ygjFP5HeEPRJgzTKe1O5nwBVRNquVA
sshPublicKey:
kEtYYQKBgQDUhFw51ICMbV/gx+C3TO5/nq09b2h7oTvS7NRRJgkAD1d6pegt7DMU
sshPublicKey:
lNeCKhQUDz1MSQvNrin16aF66qIO1Men2mdqsXyGXgeDbB+o+p4+06bADRbO8aUu
sshPublicKey:
lpahpM1mCsZxXDKSw1MrYqBMKZlLkRkUWfj0O63sU2pogcslI5d4CUn/mmRTyG3x
sshPublicKey:
MIIEpAIBAAKCAQEAuzcrOUvKaWA7aDdbB5e2GnHTP1EVUI0l8RRNwd87rrILV9Q3
sshPublicKey:
mkjxD1ByswqAage4YNgSwqJC6M45Htkt9/Ro3QucNNOkUHqXK48/WphDZTlrLjOo
sshPublicKey:
pfM06pi2I9EG+6ghdcrG3Wjt2wGBLZz4iMpyTbIYb6Hdu6FragucUxbn9AZylUri
sshPublicKey:
POhmJD2OFykuwFFMuxvWw5J8OL2PdDBA9uNNmbpx36xy8X2CdpD6TzS/AGiWpo6Y
sshPublicKey:
tVrea8bjhUk3J0WwFcY3lI6/BtTpuG5+1623tuqPkwdprUtehS4ObT/NusuVYhi0
sshPublicKey:
UuTYyerh7O5By3hkPxUBpH0/XjaxuGkp0Afw8CLmeUy5abdleiBqZA283VH+qdPX
sshPublicKey:
vmOzl1ac6hSEOXCf28KzBDD2SPNlyFD0TDuXKG4gJ0uAWiNiwl1oWesLAoGBANZB
sshPublicKey:
wBrqAAVBAoGBAN+xPjSBMwJ4OmxRt2Pcodn8aI9Wq14YCd+mvcOLksD6n7PKcvOq
sshPublicKey:
WfvvF7GHfHOlaKR5p3Sd00hvuIqbI5Br+eTCqWW+cIz2lffDbiR4sxp6auS1CTvy
sshPublicKey:
x7f7AX02LFpvDnVdh/6j4dIqDlnlcNTzNmvrw1hfWaz4n8Q1Upa0p7EnZPvl8Ep0
sshPublicKey:
XUqXyXmOAMVDJEyhdhscdProPe7zKbP6CpzxXg/wnIq5sq9I83WaqM/4t1LbsnFM
sshPublicKey:
yD3SBANyzcRPU4Pw1FO5LSi8rCm5Ru/Num0S+xoGm9HZcDLd2KnAaJT4luTsnvJ3
sshPublicKey:
YYADyR0xi5Odl7UtO+pQ2q4h6ySs6fIRRk1iewIDAQABAoIBAQCuNwZ4CPlQ2gYu
whenChanged: 20210227195331.0Z
objectClass: top
objectClass: ldapPublicKey
objectClass: securityPrincipal
objectClass: person
objectClass: organizationalPerson
objectClass: user
uSNChanged: 1518533
distinguishedName: CN=Albert Tatlock,CN=Users,DC=samdom,DC=example,DC=com
This was added with LAM 7.2
Though I would have expected only one sshPublicKey line.
So, back to you 😂
Rowland
Also, it wasn't until I looked closely at what was in AD and compared it
with the file I uploaded into LAM, that I realised the order of the
lines in AD did not match the order of the lines in the original file.
Sorry Roland, but it would seem you may have problems with the way you
are parsing the file.
Rowland
_______________________________________________
Lam-public mailing list
Lam-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lam-public