I use ldapsearch to get some users from my LDAP-Server. The command replies something like this:

```
uid: name.surname
homeDirectory: /home/name
sambaSID: S-1-4-32-224545876-87201423761-4821562975-6853
sambaHomeDrive: G:
description: poI
description: pPI
sn: naut
givenName: givenName: peter
mail: mymail@example.com

```

Now I want to assign every string after ":" to a variable (the two descriptions maybe to a array? By sambaSID I just need the last block (6853 in this case [could be longer or shorter]).

Any help would be really appreciated. Here my try with mktmp, sed, grep and many ugly if statements. I have no other idea... <http://dpaste.com/97693/>