Yep, they were bred for similar purposes as the bouvier, except rather than protect cows against humans, they were protecting sheep against wolves...hence their coats...blending into the flock was essential so that they could remain close to the animals they were trying to protect. I believe they originated in Hungary but I'd have to look that up. The Komondor you see lieing down flat when it sees other dogs is exactly what they were bred to do...to allow the wolf to get nearer and then launch an attack to kill the said wolf. That's probably why your own dog doesn't like it, lol.
What I do know is that they are fantastic guard dogs and very protective of their families and owners...I just wish you could bath them a bit more but that coat takes days and days to dry!